:root {
  --cream: #fff8ec;
  --cream-deep: #ffecd0;
  --paper: #ffffff;
  --ink: #3b2414;
  --ink-soft: #76583f;
  --line: #2a1a0e;
  --green: #1e9a4b;
  --green-deep: #157a3a;
  --coral: #f07a6a;
  --tile-border: #f1e1c8;

  --radius: 20px;
  --gutter: 16px;
  --max: 960px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 4px;
}

.site-header nav a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  background: var(--cream-deep);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--line);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--line);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-deep);
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

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

.hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 56px;
  text-align: center;
}

.hero-art {
  width: min(260px, 70vw);
  padding-bottom: 6px;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 6px 0 var(--line);
  animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img {
    animation: none;
  }
}

.eyebrow {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 4px 0 12px;
  font-size: clamp(44px, 12vw, 64px);
  font-weight: 900;
  line-height: 1.1;
}

.hero h1 span {
  font-size: 0.42em;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.lead {
  margin-bottom: 24px;
  font-size: 16px;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
    text-align: left;
  }

  .hero-art {
    width: 300px;
  }

  .lead {
    font-size: 17px;
  }
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 900;
}

.section-title::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- work cards (top page) ---------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter button {
  min-height: 36px;
  padding: 4px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
}

.filter button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.card-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 5px 0 var(--line);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--line);
}

.card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover,
  .card:active {
    transform: none;
    transition: none;
  }
}

.card-cover {
  aspect-ratio: 4 / 3;
  border-bottom: 2.5px solid var(--line);
  background: var(--cream-deep);
}

.card-cover img {
  width: 100%;
  height: 100%;
}

.card-cover--cover img {
  object-fit: cover;
}

.card-cover--contain img {
  padding: 6%;
  object-fit: contain;
}

.card-body {
  padding: 16px 18px 20px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.chip {
  padding: 1px 10px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  font-size: 12px;
}

.card-title {
  margin: 8px 0 4px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.card-summary {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- work detail ---------- */

.detail {
  padding-top: 8px;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back:hover {
  color: var(--ink);
  text-decoration: underline;
}

.back--bottom {
  margin: 28px 0 0;
}

.work {
  padding: 18px 14px;
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 6px 0 var(--line);
}

.work-head {
  max-width: 640px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.badge {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.work-title {
  margin: 6px 0 12px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}

.work-desc {
  margin-bottom: 12px;
  font-size: 15px;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 720px) {
  .work {
    padding: 32px;
  }

  .work-title {
    font-size: 34px;
  }
}

.image-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.image-grid figure {
  margin: 0;
}

.image-grid img,
.image-grid video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: var(--cream);
}

.image-grid figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.not-found {
  padding-top: 48px;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 900;
}

.not-found p {
  margin-bottom: 28px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .sticker-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .sticker-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.sticker-grid figure {
  height: 100%;
  margin: 0;
  padding: 8px 6px 6px;
  border: 1.5px solid var(--tile-border);
  border-radius: 16px;
  background: var(--cream);
  text-align: center;
}

.sticker-grid img {
  width: 100%;
  aspect-ratio: 308 / 270;
  object-fit: contain;
}

.sticker-grid figcaption {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-soft);
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ---------- about ---------- */

.about {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.about-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 2.5px solid var(--line);
  border-radius: 50%;
}

.about p:not(.about-name) {
  text-align: left;
}

.about-name {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.about-name span {
  margin-left: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .about {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    text-align: left;
  }
}

/* ---------- links ---------- */

.link-list {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 20px;
  border: 2.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--line);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.link-list a:hover {
  background: var(--cream-deep);
}

.link-list a:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--line);
}

.link-label {
  font-size: 17px;
  font-weight: 900;
}

.link-sub {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.link-sub::after {
  content: " →";
}

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

.site-footer {
  padding: 24px var(--gutter) 40px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}
