/* Curio Shelf: brand kit
   cream #FFF6E9 · deep teal #1F4E5F · terracotta #C8553D · mustard #E9B44C
   Headings: DM Serif Display · Body: DM Sans */

:root {
  --cream: #FFF6E9;
  --teal: #1F4E5F;
  --teal-deep: #173B49;
  --terracotta: #C8553D;
  --mustard: #E9B44C;
  --muted: #4A6B77;
  --rule: rgba(31, 78, 95, 0.18);
  --measure: 38rem;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font: 400 1.125rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--teal);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--terracotta);
}
a:hover { background: rgba(233, 180, 76, 0.35); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--teal);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 0.75rem; }

/* Header */
.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font: 400 1.5rem/1 "DM Serif Display", Georgia, serif;
}
.brand:hover { background: none; }
.site-header nav { display: flex; gap: 1.5rem; font-weight: 500; }
.site-header nav a { text-decoration-color: transparent; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { text-decoration-color: var(--terracotta); background: none; }

/* Type */
h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0 0 1.1rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }

/* Shelf divider: each section rests on a shelf */
.shelf {
  height: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--terracotta);
  margin: 2.5rem 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 3rem;
  align-items: center;
  padding: 2.5rem 0 0;
}
.hero p { margin-top: 1.25rem; }
.hero svg { width: 100%; }
.button {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
}
.button:hover { background: var(--teal-deep); color: var(--cream); }

/* Guide list */
.guides { list-style: none; margin: 0; padding: 0; }
.guide {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.guide:hover { background: none; }
.guide:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.guide p { margin: 0.25rem 0 0; color: var(--muted); }
.guides li:last-child .guide { border-bottom: 1px solid var(--rule); }
.glyph { width: 64px; height: 64px; }

/* Reading pages */
.prose { max-width: var(--measure); padding-bottom: 1rem; }
.prose h1 { margin-top: 2rem; margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.meta { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }
.note {
  border-left: 4px solid var(--mustard);
  background: rgba(233, 180, 76, 0.18);
  padding: 0.9rem 1.1rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
}
.note p:last-child { margin-bottom: 0; }
.formula {
  background: rgba(31, 78, 95, 0.07);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer p { margin: 0; }

@media (max-width: 46rem) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero svg { max-width: 22rem; }
  .guide { grid-template-columns: 52px 1fr; gap: 1rem; }
  .glyph { width: 52px; height: 52px; }
}

/* Category label inside guide rows */
.guide .cat { font-size: 0.9375rem; font-weight: 500; margin: 0.4rem 0 0; color: var(--teal); }
.guide .cat::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--mustard); margin-right: 0.5rem; }

/* Latest Finds: category directory */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; margin: 0; padding: 0; list-style: none; }
.cat-item { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.4rem; }
.cat-item h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.cat-item p { margin: 0 0 0.5rem; color: var(--muted); }
.cat-item ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.cat-item.soon h3 { color: var(--muted); }
.cat-item .soon-note { font-size: 0.9375rem; font-weight: 500; color: var(--muted); margin: 0; }
/* TIP: to hide categories that have no guides yet, remove the comment markers around the next line.
.cat-item.soon { display: none; }
*/
@media (max-width: 46rem) { .cats { grid-template-columns: 1fr; } }

/* Fixes: mobile menu wrapping and balanced headings */
.site-header nav { flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-header nav a { white-space: nowrap; }
.lede, h1, h2 { text-wrap: balance; }
@media (max-width: 46rem) {
  .site-header nav { width: 100%; font-size: 1rem; gap: 0.35rem 1.1rem; }
}
