/* ぶり: palette taken from the icon and from a slice of buri */
:root {
  color-scheme: light;
  --paper: #f6f5fb;      /* lavender-tinted white */
  --ink: #26233f;        /* deep indigo, from the shirt and eyes */
  --ink-soft: #57537c;   /* secondary text */
  --hair: #8e8ac4;       /* lavender hair */
  --plate: #e9e7f4;      /* the plate the slices sit on */
  --chiai: #a8303c;      /* 血合い: the dark red edge of a buri slice */
  --flesh: #f4cfc8;      /* pale pink flesh */
  --display: "Dela Gothic One", "Zen Maru Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--chiai); text-underline-offset: .2em; }

:focus-visible { outline: 3px solid var(--chiai); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
}

.wordmark {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(5.5rem, 18vw, 12rem);
  line-height: 1;
  letter-spacing: -.02em;
}


.lead {
  max-width: 30em;
  margin: 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-soft);
}

.plate {
  margin: 0;
  width: clamp(14rem, 30vw, 21.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: clamp(.75rem, 1.6vw, 1.1rem);
  background: #fff;
  box-shadow:
    0 0 0 clamp(.5rem, 1.2vw, .8rem) var(--plate),
    0 1.5rem 3rem -1rem rgb(38 35 63 / .25);
}

.plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- sections ---------- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.2;
}

/* ---------- works: slices on a plate ---------- */

.works {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
  background: var(--plate);
  border-radius: clamp(1.75rem, 4vw, 3rem);
}

.slices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.slice {
  max-width: 46rem;
  padding: 1.25rem 2rem 1.35rem 2.9rem;
  border-radius: 1.1rem 4.5rem 3.5rem 1.1rem / 1.1rem 50% 50% 1.1rem;
  background:
    repeating-linear-gradient(104deg, transparent 0 2.6rem, rgb(255 255 255 / .2) 2.6rem 2.72rem),
    linear-gradient(97deg,
      #8f2531 0,
      var(--chiai) .7rem,
      #d0646a 1.35rem,
      #eaa59e 1.9rem,
      var(--flesh) 3.6rem,
      #fbe8e4 62%,
      #fdf2ef 100%);
  box-shadow: 0 .9rem 1.6rem -1rem rgb(120 36 48 / .35);
  transform: rotate(-.5deg);
}

.slice:nth-child(even) { margin-left: clamp(1rem, 6vw, 5rem); transform: rotate(.45deg); }

.slice h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}

.slice .context {
  margin: .1rem 0 .45rem;
  font-size: .875rem;
  color: #7a3a42;
}

.slice p:last-child { margin: 0; max-width: 34em; }

/* the one orchestrated moment: slices are laid on the plate one after another */
@media (prefers-reduced-motion: no-preference) {
  .slice { animation: lay 620ms cubic-bezier(.2, .8, .25, 1) both; }
  .slice:nth-child(even) { animation-name: lay-even; }
  .slice:nth-child(1) { animation-delay: 120ms; }
  .slice:nth-child(2) { animation-delay: 200ms; }
  .slice:nth-child(3) { animation-delay: 280ms; }
  .slice:nth-child(4) { animation-delay: 360ms; }
  .slice:nth-child(5) { animation-delay: 440ms; }
  .slice:nth-child(6) { animation-delay: 520ms; }
  .slice:nth-child(7) { animation-delay: 600ms; }
}

@keyframes lay {
  from { opacity: 0; transform: translateX(3rem) rotate(-3deg); }
  to   { opacity: 1; transform: rotate(-.5deg); }
}
@keyframes lay-even {
  from { opacity: 0; transform: translateX(3rem) rotate(3deg); }
  to   { opacity: 1; transform: rotate(.45deg); }
}

/* ---------- me ---------- */

.me { padding: clamp(3rem, 7vw, 5rem) 0 1rem; }

.facts { margin: 0; max-width: 42rem; }

.facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 2px dotted rgb(142 138 196 / .55);
}
.facts div:last-child { border-bottom: 2px dotted rgb(142 138 196 / .55); }

.facts dt { font-weight: 700; color: var(--ink-soft); }
.facts dd { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  font-size: .875rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 859px) {
  .hero { grid-template-columns: 1fr; }
  .plate { order: -1; width: min(62vw, 17rem); }
  main { padding-inline: .75rem; }
  .works { padding-inline: .75rem; }
  .works .section-title, .me { padding-inline: .5rem; }
  .slice { padding: 1rem 1.6rem 1.1rem 2.1rem; border-radius: 1rem 2.5rem 2rem 1rem / 1rem 50% 50% 1rem; }
  .slice:nth-child(even) { margin-left: .6rem; }
  .slice h3 { font-size: 1.125rem; }
  .slice p:last-child { font-size: 1rem; }
}

@media (max-width: 480px) {
  .facts div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- 404 ---------- */

.notfound { max-width: 40rem; margin: 0 auto; padding: clamp(4rem, 12vw, 8rem) 1.5rem; }
.notfound h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(5rem, 16vw, 8rem);
  line-height: 1;
}
