/* =========================================================
   Kianora — design tokens
   ========================================================= */
:root {
  --ivory:        #EDE5D2;
  --ivory-deep:   #E1D6BC;
  --ivory-line:   #D8CBA9;
  --ink:          #1C1A17;
  --ink-soft:     #4A4438;
  --ink-faint:    #7A705E;
  --brass:        #A9762E;
  --brass-deep:   #7C5620;
  --paper:        #F7F3E8;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --gutter: 6vw;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.wordmark span { color: var(--brass-deep); }

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.site-footer .logo-img {
  height: 44px;
}

@media (max-width: 420px) {
  .logo-img { height: 42px; }
}

.site-nav ul {
  display: flex;
  gap: 2.4rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 14ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-copy p.lede {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1, .hero-copy p.lede, .hero-actions { opacity: 1; transform: none; animation: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-graphic {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* =========================================================
   Section rhythm
   ========================================================= */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  border-bottom: 1px solid var(--ivory-line);
  padding-bottom: 1.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  max-width: 16ch;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 40ch;
  justify-self: end;
  text-align: left;
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
}

/* =========================================================
   Categories (structural list, not cards)
   ========================================================= */
.categories { border-top: 1px solid var(--ivory-line); }

.category-row {
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--ivory-line);
}

.category-row .cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 400;
}

.category-row .cat-desc {
  color: var(--ink-soft);
  max-width: 46ch;
}

.category-row .cat-status {
  color: var(--ink-faint);
  font-size: 0.9rem;
  white-space: nowrap;
  justify-self: end;
}

@media (max-width: 720px) {
  .category-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .category-row .cat-status { justify-self: start; }
}

/* =========================================================
   Philosophy / split band
   ========================================================= */
.band {
  background: var(--ivory-deep);
}

.band .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.25;
}

.band .band-text p {
  color: var(--ink-soft);
}
.band .band-text p + p { margin-top: 1rem; }

@media (max-width: 720px) {
  .band .wrap { grid-template-columns: 1fr; }
}

/* =========================================================
   Signup band
   ========================================================= */
.signup {
  text-align: left;
}

.signup .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--ivory-line);
  border-bottom: 1px solid var(--ivory-line);
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.signup h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  max-width: 18ch;
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  min-width: 320px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink-faint);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}

.signup-note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.form-feedback {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--brass-deep);
  display: none;
}
.form-feedback.visible { display: block; }

@media (max-width: 720px) {
  .signup .wrap { grid-template-columns: 1fr; align-items: start; }
  .signup-form { min-width: 0; width: 100%; }
}

/* =========================================================
   Social row
   ========================================================= */
.social-row {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.social-row a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--ivory-line);
  padding-bottom: 0.15rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-row a:hover { color: var(--brass-deep); border-color: var(--brass-deep); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--ivory-line);
  padding: 2.6rem 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--ink); }

.footer-meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* =========================================================
   Inner pages (about / contact / policy)
   ========================================================= */
.page-hero {
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(1.6rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--ivory-line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 18ch;
}

.page-hero p {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.05rem;
}

.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
}
.prose h2:first-child { margin-top: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-detail {
  border-top: 1px solid var(--ivory-line);
  padding-top: 1.4rem;
  margin-top: 1.4rem;
}
.contact-detail:first-child { margin-top: 0; }
.contact-detail .label { font-size: 0.85rem; color: var(--ink-faint); }
.contact-detail .value { font-family: var(--font-display); font-size: 1.2rem; margin-top: 0.2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field label { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ink-faint);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}

/* =========================================================
   Mobile nav
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--ivory-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .site-nav.open { max-height: 320px; }
  .site-nav .wrap { padding-top: 0; padding-bottom: 0; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.2rem;
  }
  .site-nav li { padding: 0.7rem var(--gutter); }
  .site-nav a { display: block; border-bottom: none; }
}
