/* Aurae Hanna — site styles
   Palette: mist (page), paper (surfaces), ink (text), breeze (accent), reed (secondary)
   Type:    Young Serif for headings, Figtree for everything else */

:root {
  --mist:   #E8EEF1;
  --paper:  #F7F9FA;
  --ink:    #152730;
  --ink-2:  #4A5B64;
  --line:   #C9D3D9;
  --breeze: #3E6F9E;
  --reed:   #8A9A6A;

  --serif: "Young Serif", Georgia, serif;
  --sans:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --measure: 62ch;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--breeze); }

:focus-visible { outline: 2px solid var(--breeze); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--ink); color: var(--paper); padding: .5rem .9rem; border-radius: 4px;
}
.skip:focus { top: .75rem; z-index: 10; }

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

.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-size: 1.15rem; text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; color: var(--breeze); }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: .25rem; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { border-color: var(--line); }
.site-nav a[aria-current="page"] { border-color: var(--breeze); }

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

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.wind {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.wind path {
  fill: none;
  stroke: var(--breeze);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: .35;
  stroke-dasharray: 260 900;
  animation: drift 14s linear infinite;
}
.wind path:nth-child(2) { animation-duration: 18s; animation-delay: -6s; opacity: .28; }
.wind path:nth-child(3) { animation-duration: 12s; animation-delay: -3s; }
.wind path:nth-child(4) { animation-duration: 20s; animation-delay: -9s; opacity: .22; }
.wind path:nth-child(5) { animation-duration: 16s; animation-delay: -12s; opacity: .3; }
@keyframes drift { to { stroke-dashoffset: -1160; } }

.hero > :not(.wind) { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: .9;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  max-width: 34ch;
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }

.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.4rem; border-radius: 4px; border: 0;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--breeze); }
.link { font-weight: 500; }

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

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.band > h2 { margin-bottom: 1.75rem; }

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
}
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.page-head p { font-size: 1.2rem; color: var(--ink-2); max-width: 48ch; }

/* Services */
.services {
  margin: 0;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.services div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.services dt { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .5rem; }
.services dd { margin: 0; color: var(--ink-2); }

/* Work grid on the front page */
.work-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.work-card a {
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5; padding: 1.25rem; border-radius: 6px;
  text-decoration: none; color: var(--paper);
}
.work-kind { font-size: .9rem; opacity: .8; }
.work-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }

/* Colour plates stand in for stills until real images are added */
.tone-a { background: linear-gradient(160deg, #2C4A63 0%, #6B8FAE 60%, #A9C0D1 100%); }
.tone-b { background: linear-gradient(160deg, #8F9C9E 0%, #C4CFCF 55%, #E6E9E7 100%); }
.tone-c { background: linear-gradient(160deg, #6F6A5C 0%, #A69C86 55%, #D3CBB9 100%); }
.tone-d { background: linear-gradient(160deg, #26362E 0%, #5C7461 55%, #9BAF98 100%); }
.tone-b a, .tone-c a { color: var(--ink); }

/* Work page */
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.project {
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  scroll-margin-top: 2rem;
}
.project-thumb { aspect-ratio: 4 / 3; border-radius: 6px; }
.project-meta { color: var(--ink-2); margin-bottom: .4rem; }
.project h2 { margin-bottom: .6rem; }

/* Journal */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: grid; gap: .25rem 2rem;
  grid-template-columns: 7.5rem 1fr;
  grid-template-areas: "date title" "date summary";
  padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.post-list li:first-child { border-top: 0; padding-top: 0; }
.post-list time { grid-area: date; color: var(--ink-2); font-size: .95rem; padding-top: .3rem; }
.post-list a { grid-area: title; font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.post-list a:hover { color: var(--breeze); }
.post-list p { grid-area: summary; margin: 0; color: var(--ink-2); }

.post-date { color: var(--ink-2); margin-bottom: .75rem; }
.prose h2 { margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { line-height: 1.7; }

/* Contact */
.contact-form { max-width: 40rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.5rem; max-width: none; }
.field label { font-weight: 500; }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
  padding: .7rem .85rem;
}
.field input:focus, .field textarea:focus { border-color: var(--breeze); outline: none; box-shadow: 0 0 0 3px rgba(62, 111, 158, .2); }
.field [aria-invalid="true"] { border-color: #A0442E; }
.field-error { color: #A0442E; font-size: .95rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--paper); border-left: 3px solid var(--reed); padding: 1.25rem 1.5rem; max-width: 40rem; }
.contact-alt { color: var(--ink-2); }

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

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--ink);
  font-size: .95rem;
}
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid p { margin: 0 0 .3rem; }
.foot-name { font-family: var(--serif); font-size: 1.15rem; }
.foot-line { color: var(--ink-2); max-width: 28ch; }
.foot-copy { margin: 2.5rem 0 0; color: var(--ink-2); }

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

@media (max-width: 720px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .project { grid-template-columns: 1fr; }
  .post-list li { grid-template-columns: 1fr; grid-template-areas: "date" "title" "summary"; gap: .2rem; }
  .post-list time { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wind path { animation: none; stroke-dasharray: none; opacity: .18; }
}
