/* The True Honourable Egg Co. — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --cream: #FBF2DC;
  --cream-deep: #F4E4B0;
  --ink: #2B2318;
  --henhouse: #5C4630;
  --duckegg: #F0A857;
  --duckegg-deep: #D98A3D;
  --ochre: #C97A2E;
  --moss: #E2B23F;
  --line: rgba(43, 35, 24, 0.18);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Public Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--henhouse);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand svg {
  margin-right: 18px;
  width: 78px;
  height: 78px;
}

.brand svg { flex-shrink: 0; }

.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--henhouse);
  letter-spacing: 0.01em;
}

.brand-text small {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.65;
  margin-top: 2px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav.main-nav li:not(:last-child) {
  margin-right: 28px;
}

nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--duckegg-deep);
  color: var(--henhouse);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--henhouse);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--henhouse);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--henhouse);
}

.btn-secondary:hover {
  background: var(--henhouse);
  color: var(--cream);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: flex;
  align-items: center;
}

.hero .hero-text {
  flex: 1.1;
  padding-right: 40px;
}

.hero .hero-eggs {
  flex: 0.9;
}

.hero-eyebrow {
  font-size: 0.92rem;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 12ch;
}

.hero p.lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.1rem;
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
}

.hero-ctas .btn:not(:last-child) {
  margin-right: 14px;
}

.hero-eggs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-eggs figure:not(:last-child) {
  margin-right: 18px;
}

.hero-eggs figure {
  margin: 0;
  text-align: center;
}

.hero-eggs figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--henhouse);
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  margin-top: 12px;
  font-size: 1.05rem;
}

/* Egg trio (home teaser) */

.egg-trio {
  display: flex;
  flex-wrap: wrap;
}

.egg-card {
  border: 1px solid var(--line);
  padding: 26px;
  background: var(--cream-deep);
  flex: 1 1 0;
  margin-right: 20px;
}

.egg-card:last-child {
  margin-right: 0;
}

.egg-card svg { display: block; margin: 0 auto 16px; }

.egg-card h3 {
  font-size: 1.2rem;
  text-align: center;
}

.egg-card p {
  margin-top: 10px;
  font-size: 0.96rem;
  text-align: center;
}

.egg-card a {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--henhouse);
  padding-bottom: 2px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Honour pledge (about) */

.pledge {
  border: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 36px;
}

.pledge ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pledge ul li:not(:last-child) {
  margin-bottom: 18px;
}

.pledge li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pledge li svg { flex-shrink: 0; margin-top: 3px; }

/* Simple home menu */

.home-menu {
  display: flex;
  flex-direction: column;
}

.home-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  text-decoration: none;
  color: var(--henhouse);
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.home-menu a:first-child {
  border-top: 1px solid var(--line);
}

.home-menu .arrow {
  font-family: 'Public Sans', sans-serif;
  font-weight: 400;
  color: var(--ochre);
  font-size: 1.2rem;
}

.about-list div {
  padding: 18px 4px;
  color: var(--henhouse);
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.about-list div:first-child {
  border-top: 1px solid var(--line);
}

.hatch-list {
  display: flex;
  flex-direction: column;
}

.hatch-list a {
  display: block;
  padding: 18px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.hatch-list a:first-child {
  border-top: 1px solid var(--line);
}

.hatch-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hatch-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--henhouse);
}

.hatch-name span {
  font-family: 'Public Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.7;
}

.hatch-qty {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--henhouse);
  opacity: 0.7;
}

.hatch-price {
  font-family: 'Barlow Condensed', 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ochre);
  white-space: nowrap;
}

.hatch-desc {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.82;
}

.note-box {
  background: var(--cream-deep);
  border-left: 4px solid var(--ochre);
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Product detail rows */

.product-row {
  display: flex;
  padding: 44px 0;
  align-items: flex-start;
}

.product-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.product-figure {
  flex: 0 0 200px;
  padding-right: 40px;
  display: flex;
  justify-content: center;
}

.product-row .product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 1.5rem;
}

.product-info .price-row {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
}

.product-info .price-row .price-block:not(:last-child) {
  margin-right: 32px;
}

.price-block {
  border-left: 3px solid var(--duckegg-deep);
  padding-left: 14px;
}

.price-block.hatching {
  border-left-color: var(--moss);
}

.price-block .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--henhouse);
}

.price-block .value {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2px;
}

.product-info .note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.85;
}

/* Timeline-free story blocks (about) */

.story-block {
  display: flex;
  align-items: center;
}

.story-block .story-text {
  flex: 1;
  padding-right: 24px;
}

.story-block .story-art {
  flex: 1;
}

.story-block.reverse .story-text { order: 2; padding-right: 0; padding-left: 24px; }
.story-block.reverse .story-art { order: 1; }

.story-art {
  border: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 30px;
  display: flex;
  justify-content: center;
}

/* Contact page */

.contact-grid {
  display: flex;
}

.contact-grid .contact-info {
  flex: 1;
  padding-right: 24px;
}

.contact-grid form.enquiry {
  flex: 1.2;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-weight: 700;
  color: var(--henhouse);
  margin-top: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
  margin: 4px 0 0;
}

form.enquiry {
  display: flex;
  flex-direction: column;
}

form.enquiry > div {
  margin-bottom: 18px;
}

form.enquiry label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--henhouse);
}

form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  background: var(--cream-deep);
  color: var(--ink);
  border-radius: 3px;
}

form.enquiry textarea {
  min-height: 130px;
  resize: vertical;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.9rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer .fine-print {
  opacity: 0.65;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero .wrap { flex-direction: column; }
  .hero .hero-text { padding-right: 0; margin-bottom: 32px; }
  .hero-eggs { justify-content: flex-start; }
  .egg-trio { flex-direction: column; }
  .egg-card { margin-right: 0; margin-bottom: 20px; }
  .product-row { flex-direction: column; }
  .product-figure { padding-right: 0; padding-bottom: 20px; justify-content: flex-start; }
  .story-block, .story-block.reverse { flex-direction: column; }
  .story-block .story-text, .story-block.reverse .story-text { padding: 0 0 24px; order: initial; }
  .story-block .story-art, .story-block.reverse .story-art { order: initial; }
  .contact-grid { flex-direction: column; }
  .contact-grid .contact-info { padding-right: 0; margin-bottom: 24px; }
  nav.main-nav ul { gap: 18px; flex-wrap: wrap; }
  section { padding: 36px 0; }
  .product-row { padding: 28px 0; }
  .story-art { max-width: 260px; }
  .story-art svg { width: 100%; height: auto; }
}

@media (max-width: 480px) {
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .brand svg { width: 40px; height: 40px; margin-right: 10px; }
  .brand-text { font-size: 1.05rem; line-height: 1.15; }
  .brand-text small { font-size: 0.62rem; }
  nav.main-nav ul { gap: 12px; }
  nav.main-nav a { font-size: 0.82rem; }
  section { padding: 18px 0; }
  .hero-eyebrow { margin-bottom: 6px; font-size: 0.78rem; }
  .home-menu a { padding: 14px 4px; font-size: 1.1rem; }
  footer.site-footer { padding: 14px 0; }
  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
}
