:root {
  color-scheme: light;
  --cream: #faf6ef;
  --paper: #fffdf8;
  --ink: #352d28;
  --muted: #6e6056;
  --accent: #944b32;
  --accent-dark: #753a27;
  --peach: #f0dfd0;
  --line: #dfd2c3;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 18px;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c38250;
  box-shadow: 0 0 0 5px #efdcc2;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6.2vw, 4.6rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

p {
  margin: 0 0 20px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 58px 24px;
}

.hero-copy {
  max-width: 650px;
}

.hero-description {
  max-width: 490px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fffdf8;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: #fffdf8;
}

.hero-note {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-art {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e2cdb7;
  border-radius: 180px 180px 22px 22px;
  background: #eee0cf;
  aspect-ratio: 1 / 1.08;
}

.art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 69% 44%, #fbe6b5 0%, #f3d9ab80 26%, transparent 61%);
}

.art-window {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 36%;
  height: 48%;
  border: 10px solid #f9f1e5;
  border-bottom-width: 15px;
  border-radius: 100px 100px 0 0;
  background: linear-gradient(135deg, #c3c5af, #e5dfc7);
  box-shadow: 15px 14px 0 #d5bc9c40;
}

.art-window::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 0;
  width: 6px;
  height: 100%;
  background: #f9f1e5;
}

.art-desk {
  position: absolute;
  top: 75%;
  left: 7%;
  width: 86%;
  height: 13px;
  border-radius: 6px;
  background: #b78866;
  box-shadow: 0 14px 24px #79513618;
}

.art-lamp {
  position: absolute;
  right: 14%;
  bottom: 25%;
  width: 29%;
  height: 42%;
  background: linear-gradient(#966d51, #966d51) center bottom / 7px 70% no-repeat;
}

.art-lamp::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 43%;
  border-radius: 80px 80px 10px 10px;
  background: #bf7757;
  box-shadow: 0 15px 30px #efbd6260;
}

.art-lamp::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: 0;
  width: 60%;
  height: 9px;
  border-radius: 50% 50% 3px 3px;
  background: #966d51;
}

.art-notebook {
  position: absolute;
  left: 19%;
  bottom: 25%;
  width: 28%;
  height: 12px;
  border: 3px solid #8f967b;
  border-left-width: 8px;
  border-radius: 3px;
  background: #fff8e8;
  transform: rotate(-3deg);
}

.art-cup {
  position: absolute;
  left: 36%;
  bottom: 29%;
  width: 10%;
  height: 12%;
  border-radius: 4px 4px 12px 12px;
  background: #faf3e8;
}

.art-cup::after {
  content: "";
  position: absolute;
  top: 15%;
  right: -45%;
  width: 55%;
  height: 55%;
  border: 5px solid #faf3e8;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.art-caption {
  position: absolute;
  bottom: 7%;
  width: 100%;
  color: #705340;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
}

.section-space {
  margin-block: 64px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 30px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.category-card:nth-child(2) {
  background: #f5e9dc;
}

.category-card:nth-child(3) {
  background: #eeeee4;
}

.category-number {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.category-card p {
  color: var(--muted);
  font-size: 1rem;
}

.status {
  margin-top: auto;
  padding: 7px 12px;
  border: 1px solid #d7c6b6;
  border-radius: 999px;
  color: #75543f;
  font-size: 0.76rem;
  font-weight: 600;
}

.about {
  display: grid;
  gap: 12px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 650px;
  color: var(--muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 30px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer nav a {
  font-size: 0.8rem;
}

.legal {
  max-width: 760px;
  padding-block: 58px 80px;
  overflow-wrap: break-word;
}

.legal h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.legal h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.legal p {
  color: var(--muted);
}

.legal strong {
  color: var(--ink);
}

.legal .eyebrow {
  color: var(--accent);
}

.lead {
  font-size: 1.12rem;
}

.updated {
  font-size: 0.85rem;
}

.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  max-width: 760px;
  min-height: 55vh;
  padding-block: 70px;
}

.not-found p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 80px));
  }

  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    padding-block: 76px 30px;
  }

  .hero-art {
    min-height: 350px;
  }

  .section-space {
    margin-block: 90px;
  }

  .about {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    padding-top: 60px;
  }
}

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

  .category-card {
    padding: 34px 28px;
  }

  .hero-art {
    min-height: 430px;
  }
}

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