/* Oxford Tent Company - preview site
   Tokens derived from the brand in _brief.md. Contrast ratios verified there. */

:root {
  --canvas: #F5F2EC;
  --canvas-2: #EDE8DF;
  --ink: #26302A;
  --ink-2: #3E5244;
  --rose: #C34D5F;
  --rose-deep: #9B3A49;
  --rose-light: #E8A7B0;
  --muted: #60675E;
  --line: rgba(38, 48, 42, .14);
  --line-dark: rgba(245, 242, 236, .16);

  --display: "Josefin Sans", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gut: clamp(1.15rem, 4.5vw, 3rem);

  /* deliberately uneven: hero breathes, bands are tighter, footer tighter still */
  --band-y: clamp(3.9rem, 8vw, 7rem);
  --band-y-tight: clamp(2.9rem, 5.5vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, .38vw + .95rem, 1.14rem);
  line-height: 1.68;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--rose-light);
}

.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--canvas);
  padding: .8rem 1.1rem; font-family: var(--display);
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- eyebrow + section heads ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 .85rem;
}
.on-dark .eyebrow { color: var(--rose-light); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 3.6vw, 3rem); }
.section-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.85rem); letter-spacing: -.005em; }
.section-head p { margin-top: 1rem; color: var(--muted); }
.on-dark .section-head p { color: rgba(245, 242, 236, .8); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  color: var(--canvas);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
  padding-block: .55rem;
}
.brand { display: flex; align-items: center; gap: .7rem; min-height: 44px; margin-right: auto; text-decoration: none; color: inherit; }
.brand img { width: 46px; height: auto; }
.brand-text { font-family: var(--display); line-height: 1.12; }
.brand-text b { display: block; font-weight: 600; font-size: .98rem; letter-spacing: .13em; text-transform: uppercase; }
.brand-text span { display: block; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 242, 236, .72); }

.nav { display: none; gap: 1.6rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-weight: 500; font-size: .83rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(245, 242, 236, .86); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--rose-light); }

.header-tel {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .95rem;
  font-family: var(--display); font-weight: 600; font-size: .92rem; letter-spacing: .05em;
  color: var(--ink); background: var(--rose-light);
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.header-tel:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.header-tel svg { width: 15px; height: 15px; flex: none; }

@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.7rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn-primary { background: var(--rose-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(38, 48, 42, .28); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(27, 35, 29, .9) 0%, rgba(27, 35, 29, .74) 42%, rgba(27, 35, 29, .3) 72%, rgba(27, 35, 29, .22) 100%),
    linear-gradient(to top, rgba(27, 35, 29, .72) 0%, rgba(27, 35, 29, 0) 45%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(4.2rem, 11vw, 8.6rem);
  color: #fff;
  max-width: 43rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.15rem);
  font-weight: 600;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--rose-light); }
/* over photography the eyebrow needs more weight than it does on a flat field */
.hero .eyebrow { color: #F6C9CF; font-weight: 700; text-shadow: 0 1px 10px rgba(22, 29, 24, .75); }
.hero-trust div, .hero-trust b { text-shadow: 0 1px 10px rgba(22, 29, 24, .7); }
.hero-sub {
  margin-top: 1.35rem;
  font-size: clamp(1.06rem, .55vw + .95rem, 1.26rem);
  color: rgba(255, 255, 255, .93);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .6rem 1.9rem;
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
}
.hero-trust div { font-family: var(--display); font-size: .88rem; letter-spacing: .04em; color: rgba(255, 255, 255, .93); }
.hero-trust b { display: block; font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.2; }
.hero-trust span { color: var(--rose-light); }

/* ---------- generic band ---------- */
.band { padding-block: var(--band-y); }
.band-tight { padding-block: var(--band-y-tight); }
.band-alt { background: var(--canvas-2); }
.band-dark { background: var(--ink); color: var(--canvas); }
.band-sage { background: var(--ink-2); color: var(--canvas); }
.on-dark a { color: var(--rose-light); }
.on-dark a:hover { color: #fff; }

/* ---------- ranges ---------- */
.ranges { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .ranges { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.range {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: 3px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column;
}
.band-alt .range { background: #fdfcfa; }
.range h3 { font-size: 1.42rem; }
.range .from {
  font-family: var(--display); font-weight: 600;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose-deep); margin: .55rem 0 1rem;
}
.range p { color: var(--muted); font-size: .99rem; }
.range ul { margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.range li { padding: .42rem 0 .42rem 1.3rem; position: relative; border-top: 1px solid var(--line); }
.range li:first-child { border-top: 0; }
.range li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--rose); border-radius: 50%; }

/* ---------- prices (signature block) ---------- */
.price-group + .price-group { margin-top: clamp(2.4rem, 4vw, 3.4rem); }
.price-group h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--rose-light);
}
.price-group > p { margin-top: .9rem; color: rgba(245, 242, 236, .82); max-width: 54ch; font-size: 1rem; }

.price-row {
  display: grid; gap: .15rem .9rem;
  grid-template-columns: 1fr auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}
.price-row:first-of-type { border-top: 1px solid var(--line-dark); margin-top: 1.4rem; }
.price-name { font-family: var(--display); font-weight: 600; font-size: 1.07rem; letter-spacing: .02em; }
.price-meta { grid-column: 1; font-size: .92rem; color: rgba(245, 242, 236, .76); }
.price-fig {
  grid-row: 1 / span 2; grid-column: 2;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  color: var(--rose-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-note {
  margin-top: 1.6rem; font-size: .92rem;
  color: rgba(245, 242, 236, .72);
  border-left: 2px solid var(--rose-light);
  padding-left: .95rem;
}

/* ---------- furniture ---------- */
.rates { display: grid; gap: .55rem 2.4rem; margin: 0; padding: 0; }
@media (min-width: 680px) { .rates { grid-template-columns: 1fr 1fr; } }
.rate {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .62rem 0; border-bottom: 1px solid var(--line);
}
.rate dt { flex: 1; }
.rate dd {
  margin: 0; font-family: var(--display); font-weight: 600;
  color: var(--rose-deep); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rate .dots { flex: none; width: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: .9rem; } }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.6rem .85rem .7rem;
  font-family: var(--display); font-size: .79rem; letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(to top, rgba(22, 29, 24, .88), rgba(22, 29, 24, 0));
}
.g-tall { grid-row: span 2; }
@media (max-width: 819px) { .g-tall { grid-row: span 1; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.4rem; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; } }
.step { counter-increment: s; padding-top: 1.1rem; border-top: 2px solid var(--rose); }
.step::before {
  content: counter(s, decimal-leading-zero);
  display: block; font-family: var(--display); font-weight: 600;
  font-size: .82rem; letter-spacing: .18em; color: var(--rose-deep); margin-bottom: .5rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.step p { font-size: .96rem; color: var(--muted); }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 1.1rem; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.review {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 1.2rem; font-size: 1.01rem; }
.review blockquote::before { content: "\201C"; font-family: var(--display); font-size: 2.4rem; line-height: 0; color: var(--rose); display: block; margin-bottom: .75rem; }
.review footer { margin-top: auto; font-size: .88rem; color: var(--muted); }
.review cite { font-family: var(--display); font-weight: 600; font-style: normal; color: var(--ink); display: block; font-size: 1rem; letter-spacing: .03em; }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.areas li {
  font-family: var(--display); font-weight: 500; font-size: .9rem; letter-spacing: .06em;
  padding: .5rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2.2rem, 4vw, 3.6rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; } }

.detail { margin: 0 0 1.5rem; }
.detail dt {
  font-family: var(--display); font-weight: 600; font-size: .73rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: .3rem;
}
.detail dd { margin: 0; font-size: 1.06rem; }
.detail dd a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  letter-spacing: .03em; text-decoration: none;
  overflow-wrap: anywhere;
}
.detail dd a:hover { text-decoration: underline; }

form .field { margin-bottom: 1.05rem; }
form label {
  display: block; margin-bottom: .36rem;
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
}
form input, form select, form textarea {
  width: 100%; min-height: 50px;
  padding: .72rem .9rem;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid rgba(38, 48, 42, .26);
  border-radius: 3px;
}
form textarea { min-height: 118px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--rose-deep); }
.field-row { display: grid; gap: 1.05rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .88rem; color: var(--muted); margin-top: .9rem; }

.form-status {
  margin-top: 1.1rem; padding: .95rem 1.1rem;
  background: var(--ink); color: #fff;
  border-radius: 3px; font-size: .97rem;
}
.form-status[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 242, 236, .78); padding-block: clamp(2.6rem, 4.5vw, 3.6rem) 2rem; }
.footer-grid { display: grid; gap: 1.8rem; margin-bottom: 2.2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.6rem; } }
.site-footer h2 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; font-size: .96rem; }
.site-footer a { color: rgba(245, 242, 236, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 62px; margin-bottom: .9rem; }
.colophon {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  font-size: .84rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between;
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .gallery figure:hover img { transform: none; }
}
