/* Willow & Veil — Melbourne wedding photography */
:root {
  --paper: #f3eee5;
  --ink: #1b1a16;
  --willow: #66745a;
  --pine: #9c4b2b;
  --rule: #cbc3b4;
  --muted: #6f6a60;
  --m: clamp(16px, 2.4vw, 36px);
  --g: clamp(12px, 1.4vw, 20px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--pine); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  align-items: center;
  padding: 14px var(--m);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.nav-mark {
  grid-column: 1 / 4;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-mark em, .footer-mark em, .hero-mark em { color: var(--pine); }
.nav-tag {
  grid-column: 4 / 7;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.nav-links {
  grid-column: 7 / 11;
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--pine); }
.nav-cta {
  grid-column: 11 / 13;
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--pine); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(20px, 3vw, 40px); }
.hero-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23.6vw;
  line-height: 0.74;
  letter-spacing: -0.04em;
  white-space: nowrap;
  padding: 0.02em var(--m) 0;
  text-indent: -0.035em;
  overflow: hidden;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  margin: clamp(24px, 3vw, 44px) var(--m) 0;
  border-top: 1px solid var(--ink);
}
.meta-item {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 18px;
  font-size: 14px;
  line-height: 1.35;
}
.meta-cta { justify-content: flex-end; align-items: flex-start; font-weight: 500; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: min(92vh, 62vw);
  object-fit: cover;
  object-position: 50% 45%;
}

figcaption {
  display: flex;
  gap: 16px;
  padding: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
figcaption span:first-child { color: var(--ink); flex: none; min-width: 52px; }
.hero-figure figcaption { padding: 10px var(--m) 0; }

/* ---------- Statement ---------- */
.statement {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  padding: clamp(80px, 12vw, 180px) var(--m) clamp(80px, 10vw, 160px);
}
.statement-label { grid-column: 1 / 3; padding-top: 1.1em; }
.statement-title {
  grid-column: 3 / 13;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.statement-title em { color: var(--willow); }
.statement-body {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--g);
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Work / chapters ---------- */
.work { border-top: 1px solid var(--ink); }
.work-index {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  padding: 14px var(--m);
  border-bottom: 1px solid var(--rule);
}
.work-index .label { grid-column: 1 / 4; padding-top: 3px; }
.index-list {
  grid-column: 4 / 13;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.index-list a {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.index-list a span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.index-list a:hover { color: var(--pine); }

.chapter { padding: clamp(56px, 8vw, 120px) var(--m) 0; }
.chapter-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  align-items: end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: clamp(10px, 1.2vw, 18px);
  margin-bottom: clamp(24px, 3.4vw, 52px);
}
.chapter-num {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pine);
  border-top: 1px solid var(--ink);
  padding-top: 10px;
}
.chapter-title {
  grid-column: 1 / 13;
  grid-row: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(76px, 19.5vw, 340px);
  line-height: 0.74;
  letter-spacing: -0.045em;
  text-indent: -0.05em;
  padding-top: 0.08em;
}
.chapter-note {
  grid-column: 9 / 13;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.45;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  padding-right: 8%;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  row-gap: clamp(32px, 4vw, 64px);
}
.ph img { width: 100%; object-fit: cover; }

/* Morning: big + offset small */
.grid-morning .ph-a { grid-column: 1 / 9; }
.grid-morning .ph-a img { aspect-ratio: 3 / 2; }
.grid-morning .ph-b { grid-column: 9 / 13; align-self: end; }
.grid-morning .ph-b img { aspect-ratio: 4 / 5; object-position: 40% 50%; }

/* Details: tall crop + wide, then bleed */
.grid-details .ph-a { grid-column: 1 / 6; }
.grid-details .ph-a img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
.grid-details .ph-b { grid-column: 6 / 13; align-self: end; }
.grid-details .ph-b img { aspect-ratio: 3 / 2; }
.grid-details .ph-c { grid-column: 1 / 13; margin: 0 calc(var(--m) * -1); }
.grid-details .ph-c img { aspect-ratio: 21 / 9; }
.grid-details .ph-c figcaption { padding-left: var(--m); }

/* Vows: centred portrait + pull quote */
.grid-vows .pull {
  grid-column: 1 / 5;
  align-self: end;
  padding-bottom: 32px;
}
.grid-vows .pull p {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.grid-vows .ph-a { grid-column: 6 / 11; }
.grid-vows .ph-a img { aspect-ratio: 3 / 4; }

/* Portraits */
.grid-portraits .ph-a { grid-column: 1 / 6; }
.grid-portraits .ph-a img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.grid-portraits .ph-b { grid-column: 6 / 13; align-self: start; }
.grid-portraits .ph-b img { aspect-ratio: 4 / 3; }
.grid-portraits .ph-c { grid-column: 1 / 13; margin: 0 calc(var(--m) * -1); }
.grid-portraits .ph-c img { height: min(96vh, 66vw); object-position: 55% 60%; }
.grid-portraits .ph-c figcaption { padding-left: var(--m); }

/* Celebration */
.grid-celebration .ph-a { grid-column: 1 / 13; }
.grid-celebration .ph-a img { aspect-ratio: 16 / 9; object-position: 50% 35%; }
.grid-celebration .ph-b { grid-column: 1 / 8; }
.grid-celebration .ph-b img { aspect-ratio: 3 / 2; }
.grid-celebration .ph-c { grid-column: 8 / 13; align-self: end; }
.grid-celebration .ph-c img { aspect-ratio: 4 / 5; object-position: 55% 60%; }

/* ---------- Approach ---------- */
.approach {
  padding: clamp(100px, 13vw, 200px) var(--m) clamp(80px, 10vw, 160px);
}
.approach-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  margin-bottom: clamp(40px, 5vw, 80px);
}
.approach-head .label { grid-column: 1 / 3; padding-top: 1em; }
.approach-title {
  grid-column: 3 / 13;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.approach-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  align-items: baseline;
  border-top: 1px solid var(--ink);
  padding: 18px 0 30px;
}
.approach-row:last-child { border-bottom: 1px solid var(--ink); }
.approach-num {
  grid-column: 1 / 3;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pine);
}
.approach-name {
  grid-column: 3 / 9;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.approach-text {
  grid-column: 9 / 13;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Enquire ---------- */
.enquire {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  row-gap: 48px;
  padding: clamp(72px, 9vw, 140px) var(--m);
}
.enquire .label { color: #a9a294; }
.enquire-head { grid-column: 1 / 7; }
.enquire-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8.6vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin: 20px 0 32px;
}
.enquire-title em { color: #b9c4a9; }
.enquire-note {
  font-size: 14px;
  max-width: 40ch;
  color: #d8d1c4;
  margin-bottom: 12px;
}
.enquire .text-link:hover { color: #b9c4a9; }

.enquire-form {
  grid-column: 8 / 13;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--g);
  row-gap: 26px;
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.field.half { grid-column: span 1; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a9a294;
}
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #5b574d;
  border-radius: 0;
  padding: 8px 0;
  outline: none;
  color-scheme: dark;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--paper); }
.submit {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  padding: 16px 26px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.submit:hover { background: var(--pine); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(48px, 6vw, 90px) var(--m) 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  row-gap: 32px;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.footer-mark {
  grid-column: 1 / 7;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 116px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.footer-col { grid-column: span 3; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.footer-col .label { margin-bottom: 6px; }
.footer-col a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-col a:hover { color: var(--pine); border-color: var(--pine); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--ink); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav-tag { display: none; }
  .nav-mark { grid-column: 1 / 5; }
  .nav-links { grid-column: 5 / 11; justify-content: flex-end; gap: 20px; }
  .meta-item { grid-column: span 6; }
  .statement-label, .approach-head .label { grid-column: 1 / -1; padding: 0 0 20px; }
  .statement-title, .approach-title { grid-column: 1 / -1; }
  .statement-body { grid-column: 1 / -1; }
  .chapter-num { grid-column: 1 / 4; }
  .chapter-note { grid-column: 5 / 13; max-width: none; }
  .approach-name { grid-column: 2 / 13; }
  .approach-num { grid-column: 1 / 2; }
  .approach-text { grid-column: 2 / 13; margin-top: 12px; max-width: 52ch; }
  .enquire-head, .enquire-form { grid-column: 1 / -1; }
  .footer-mark { grid-column: 1 / -1; }
  .footer-col { grid-column: span 6; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-nav { padding: 12px var(--m); }
  .nav-mark { grid-column: 1 / 8; font-size: 24px; }
  .nav-links { display: none; }
  .nav-cta { grid-column: 8 / 13; padding: 9px 14px; }
  .hero-mark { font-size: 33vw; line-height: 0.8; white-space: normal; padding-top: 0.04em; }
  .meta-item { grid-column: 1 / -1; padding: 10px 0; border-bottom: 1px solid var(--rule); flex-direction: row; gap: 12px; }
  .meta-item .label { flex: none; width: 112px; padding-top: 2px; }
  .meta-cta { border-bottom: 0; padding: 16px 0 22px; }
  .hero-figure img { height: 118vw; object-position: 50% 50%; }
  .statement-body { grid-template-columns: 1fr; }
  .work-index .label { grid-column: 1 / -1; margin-bottom: 10px; }
  .index-list { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; }
  .chapter-num { grid-column: 1 / 3; }
  .chapter-note { grid-column: 3 / 13; font-size: 12.5px; }
  .chapter-title { font-size: 22vw; }
  .chapter-grid { row-gap: 28px; }
  .chapter-grid > * { grid-column: 1 / -1; }
  .grid-morning .ph-a,
  .grid-morning .ph-b,
  .grid-details .ph-a,
  .grid-details .ph-b,
  .grid-vows .ph-a,
  .grid-vows .pull,
  .grid-portraits .ph-a,
  .grid-portraits .ph-b,
  .grid-celebration .ph-a,
  .grid-celebration .ph-b,
  .grid-celebration .ph-c { grid-column: 1 / -1; }
  .grid-morning .ph-b { grid-column: 4 / 13; }
  .grid-details .ph-b { grid-column: 1 / 10; }
  .grid-celebration .ph-c { grid-column: 4 / 13; }
  .grid-details .ph-c img { aspect-ratio: 4 / 3; }
  .grid-portraits .ph-c img { height: 110vw; }
  .grid-celebration .ph-a img { aspect-ratio: 4 / 3; }
  .grid-vows .pull { order: 2; padding-bottom: 0; }
  .enquire-form { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .footer-col { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 6px; }
}
