/* ==========================================================
   Tal Huss - talhuss.com
   Warm Boutique design system (Template B)
   Cream / terracotta / burgundy / amber, Fraunces + Inter
   ========================================================== */

:root {
  --cream: #F7F1E8;
  --cream-alt: #F1E7D8;
  --card: #FFFDF8;
  --card-input: #FDFAF4;
  --ink: #3A2A26;
  --muted: #7A6459;
  --soft: #8A6E5C;
  --faint: #B29E8C;
  --burgundy: #6E2B36;
  --terracotta: #C4643B;
  --amber: #D9A441;
  --border: #EADCC6;
  --border-soft: #E5D7C2;
  --line: #E0CDB4;
  --shadow-card: 0 10px 28px rgba(110, 43, 54, 0.08);
  --shadow-lift: 0 14px 34px rgba(110, 43, 54, 0.10);
  --shadow-photo: 0 18px 44px rgba(110, 43, 54, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Fraunces', serif; }

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

a { color: var(--burgundy); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--burgundy);
  color: #FFF8EF;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--burgundy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: #6B5147;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--burgundy); }

.nav-links a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--amber);
}

.nav-links a.pill {
  background: var(--terracotta);
  color: #FFF8EF;
  padding: 9px 20px;
  border-radius: 999px;
  border-bottom: none;
  transition: background 0.15s ease;
}

.nav-links a.pill:hover { background: var(--burgundy); color: #FFF8EF; }

.nav-links a.pill[aria-current="page"] { background: var(--burgundy); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--soft);
  border-radius: 12px;
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  padding: 72px 0 84px;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ink);
  margin-top: 18px;
}

.hero .tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 300;
  color: var(--burgundy);
  margin-top: 20px;
}

.hero .sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 470px;
}

.hero .intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 22px;
  max-width: 520px;
}

/* Double-ring circular photo frame */
.photo-frame {
  position: relative;
  width: 300px;
  height: 300px;
  margin-left: auto;
}

.photo-frame .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--terracotta);
  transform: rotate(-6deg) translate(10px, 10px);
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #EFE4D3;
  border: 6px solid #FFFDF8;
  box-shadow: var(--shadow-photo);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }

.section.alt { background: var(--cream-alt); }

.section h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 400;
  color: var(--ink);
  margin-top: 14px;
  line-height: 1.1;
}

.section .lede {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 560px;
}

/* Page hero (interior pages) */
.page-head { padding: 64px 0 8px; }

.page-head h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  color: var(--ink);
  margin-top: 14px;
  line-height: 1.05;
}

.page-head .lede {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 580px;
}

/* ---------- Card grids ---------- */
.tease-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.tease-card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 22px 30px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tease-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.tease-card .icon,
.agent-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #F3E2D3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.tease-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.tease-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
  flex-grow: 1;
}

.tease-card .go {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
}

/* AI agent cards */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.agent-card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 22px 30px;
  box-shadow: var(--shadow-card);
}

.agent-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.agent-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

.agent-card.ghost {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed #CBAE8F;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-column: 1 / -1;
  min-height: 64px;
  padding: 22px;
}

.agent-card.ghost p {
  color: var(--soft);
  font-weight: 500;
  margin: 0;
}

/* ---------- Book ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 44px;
}

.book-cover {
  position: relative;
  padding: 14px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 22px;
  border: 1px solid var(--terracotta);
  pointer-events: none;
}

.book-cover img {
  width: 100%;
  border-radius: 8px;
  background: #EFE4D3;
  min-height: 340px;
  object-fit: cover;
}

.book-body h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

.book-body h3 em {
  font-style: italic;
  color: var(--burgundy);
}

.book-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 18px;
}

.book-body p em {
  font-style: italic;
  color: var(--burgundy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--burgundy);
  color: #FFF8EF;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 44px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: #5A222C; transform: translateY(-1px); }

.btn.terracotta { background: var(--terracotta); }
.btn.terracotta:hover { background: #A9502C; }

.btn-quiet {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 2px;
}

.btn-quiet:hover { color: var(--terracotta); }

/* ---------- Wine ---------- */
.wine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 44px;
}

.wine-card {
  background: var(--card);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 30px;
  align-items: center;
}

.wine-card .bottle { display: flex; justify-content: center; }

.wine-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--burgundy);
}

.wine-card .origin {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 6px;
}

.wine-card .note {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}

.wine-card .detail {
  font-size: 13.5px;
  color: var(--soft);
  margin-top: 12px;
  line-height: 1.55;
}

.wine-note-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  color: var(--soft);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
}

/* ---------- Resume timeline ---------- */
.summary-card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  margin-top: 36px;
  border-left: 4px solid var(--amber);
}

.summary-card p {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}

.timeline {
  margin-top: 44px;
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.role-card {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 8px 22px rgba(110, 43, 54, 0.07);
  margin-bottom: 18px;
}

.role-card::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--cream);
}

.section.alt .role-card::before { border-color: var(--cream-alt); }

.role-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.role-card h3 span { color: var(--burgundy); }

.role-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.edu-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.edu-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.edu-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  margin-top: 8px;
  align-items: start;
  padding-bottom: 24px;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--burgundy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: var(--card);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ig-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.form-card {
  background: var(--card);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lift);
}

.form-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 20px 0 8px;
}

.form-card label:first-of-type { margin-top: 0; }

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card-input);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: var(--terracotta);
}

.form-card button { margin-top: 26px; }

/* Honeypot: visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--burgundy);
  min-height: 22px;
}

#form-status.error { color: #A03030; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner .fbrand {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--burgundy);
  text-decoration: none;
}

.footer-inner span { font-size: 13px; color: var(--soft); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--burgundy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 56px 0 64px;
  }

  .photo-frame {
    margin: 0 auto;
    width: 240px;
    height: 240px;
  }

  .hero > div:first-child { order: 2; text-align: center; }
  .hero .sub, .hero .intro { margin-left: auto; margin-right: auto; }
  .photo-frame { order: 1; }

  .tease-grid, .agent-grid { grid-template-columns: repeat(2, 1fr); }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .book-cover { max-width: 300px; margin: 0 auto; }

  .wine-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 32px;
    font-size: 15px;
    border-bottom: none;
  }

  .nav-links a[aria-current="page"] {
    color: var(--burgundy);
    background: var(--cream-alt);
  }

  .nav-links a.pill {
    margin: 10px 32px 6px;
    text-align: center;
    border-radius: 999px;
  }

  .wrap { padding: 0 22px; }
  .nav-inner { padding: 16px 22px; }
  .footer-inner { padding: 24px 22px; flex-direction: column; text-align: center; }

  .section { padding: 56px 0; }
  .tease-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: 1fr; }

  .wine-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 26px;
  }

  .wine-card .bottle { margin-bottom: 6px; }

  .form-card { padding: 28px 22px; }

  .timeline { padding-left: 28px; }
  .role-card::before { left: -26px; }
}

/* Credential badge (e.g. certified UC Davis winemaker) */
.credential {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 18px;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--card);
}
