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

:root {
  --paper: #faf7ee;
  --ink: #253128;
  --green: #284837;
  --leaf: #526440;
  --muted: #555d4e;
  --line: #dcdccd;
  --orange: #a5482f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
:target { scroll-margin-top: 2rem; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.08; }
h1 { font-size: clamp(2.85rem, 6.5vw, 5.5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .64; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; padding: .7rem; top: .5rem; left: .5rem; background: white; transform: translateY(-200%); z-index: 3; }
.skip:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { color: var(--green); font: 700 2.25rem/.9 var(--serif); letter-spacing: -.09em; text-decoration: none; white-space: nowrap; }
.brand span:first-child { font-weight: 600; font-style: italic; }
.brand-dot { color: var(--orange); }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
nav a { font-weight: 600; font-size: .91rem; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.header-order { font-weight: 700; border: 1px solid var(--green); border-radius: 2rem; padding: .55rem .9rem; text-decoration: none; white-space: nowrap; }
.header-order span, .button span { margin-left: .35rem; }
.hero { background: #f1eddc; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5.5vw, 4.8rem); }
.hero-content { padding-block: .75rem; }
.hero-content h1 { max-width: 10ch; }
.hero-content h1 em { color: var(--leaf); font-weight: 600; }
.location { color: var(--leaf); font-size: .88rem; font-weight: 700; margin-bottom: 1.1rem; }
.hero-content > p:not(.location) { color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.18rem); max-width: 35ch; margin: 1.45rem 0; }
.hero-photo { border-radius: 48% 48% 1.1rem 1.1rem / 27% 27% 1.1rem 1.1rem; overflow: hidden; background: #ded9c1; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: 58% 50%; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.35rem; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; background: var(--green); color: white; border: 1px solid transparent; border-radius: 2rem; padding: .68rem 1.25rem; font-weight: 700; text-decoration: none; min-height: 2.8rem; }
.button:hover { background: #193a2b; }
.text-link { color: var(--green); font-weight: 700; }
.home-detail { display: grid; grid-template-columns: .85fr 1.5fr; gap: 2rem; padding-block: 3.2rem; }
.home-detail p { margin-top: .65rem; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.steps li { padding: .85rem 0; border-top: 2px solid #a3a98b; }
.steps span { display: block; color: var(--muted); font-size: .91rem; }
.page { min-height: 60vh; padding-block: clamp(2.5rem, 7vw, 5rem); }
.intro { color: var(--muted); margin: 1rem 0 2rem; font-size: 1.15rem; max-width: 56ch; }
.reading { max-width: 46rem; }
.reading h2 { margin: 1.6rem 0 .7rem; }
.catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; gap: .7rem; border: 1px solid var(--line); border-radius: .9rem; padding: 1.2rem; background: #fffdf6; }
.product img { aspect-ratio: 1.4; width: 100%; object-fit: cover; border-radius: .35rem; }
.product p { color: var(--muted); font-size: .94rem; margin-bottom: auto; }
.product label { margin-top: .45rem; }
.checkout, .calculator { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 2.6rem; padding: clamp(1.1rem, 4vw, 2rem); background: #f0eedf; border: 1px solid var(--line); border-radius: .95rem; }
.checkout h2, .calculator h2 { margin-bottom: 1rem; }
.checkout form h2 { font-size: 1.65rem; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cart-row button { background: transparent; border: 0; color: var(--green); text-decoration: underline; padding: .4rem; }
.total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .23rem; }
input, select { width: 100%; min-width: 0; background: #fffdf8; color: var(--ink); border: 1px solid #89917c; border-radius: .35rem; padding: .52rem .6rem; }
.calculator input, .calculator select { margin-bottom: .8rem; }
.calculator output { font-size: 1.2rem; font-weight: 700; }
.calculator-result p { margin-top: .6rem; }
.small { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
details { margin-top: .7rem; border-bottom: 1px solid var(--line); padding: .65rem 0; overflow-x: auto; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .7rem 0 .25rem; }
table { border-collapse: collapse; margin-top: .7rem; width: 100%; }
td, th { padding: .55rem; text-align: left; border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 2rem; }
.footer-inner p { margin: .5rem 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
@media (max-width: 63rem) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; padding-block: .9rem; gap: .75rem; }
  nav { order: 3; width: 100%; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .home-detail, .checkout, .calculator { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 1.45; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding-block: .6rem; }
}
@media (max-width: 29rem) {
  .catalog, .form-grid { grid-template-columns: 1fr; }
  nav { gap: .35rem .9rem; }
}
.field-help, .field-error { margin: .24rem 0 0; font-size: .83rem; }
.field-help { color: var(--muted); }
.field-error { color: #8b2b1c; font-weight: 700; }
input[aria-invalid="true"] { border-color: #8b2b1c; }
