/* Pineworth — one stylesheet for every page.
   Archivo only. Colours: #111111 background, #ffffff text, #9a9a9a secondary text.
   Non-text tints of the same greys: #3a3a3a rules, #4a4a4a input underlines, #6a6a6a link underlines. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-wght.woff2") format("woff2");
}

:root {
  --bg: #111111;
  --fg: #ffffff;
  --grey: #9a9a9a;
  --rule: #3a3a3a;
  --underline: #4a4a4a;
  --underline-link: #6a6a6a;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, p, address, ul { margin: 0; }
address { font-style: normal; }
ul { padding: 0; list-style: none; }
svg { display: block; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--underline-link);
  text-underline-offset: 4px;
  transition: text-decoration-color .15s;
}
a:hover, a:focus-visible { text-decoration-color: var(--fg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

/* Page: masthead / main / footer. Fills the screen at 1440×900; scrolls when taller. */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 56px clamp(40px, 6.6667vw, 96px) 48px;
}

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.logo { display: block; width: 172px; height: 22px; flex: none; }
.logo svg { width: 100%; height: 100%; }
.times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 40px;
  font-size: 12px;
  line-height: 1;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.times .time { color: var(--fg); }

/* Section labels: 01 — What, 02 — Terms, 03 — Contact */
.label {
  font-size: 12px;
  line-height: 1;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .18em;
}

/* Home: two columns 58/42. The vertical rule runs the full height between the two horizontal rules. */
.grid { display: grid; grid-template-columns: 58fr 42fr; min-height: 0; }
.left { display: grid; grid-template-rows: 1fr auto; padding-right: 56px; min-width: 0; }
.cell { display: flex; flex-direction: column; gap: 32px; padding: 32px 0 40px; min-width: 0; }
.cell-terms { border-top: 1px solid var(--rule); }
.cell-contact { padding-left: 56px; border-left: 1px solid var(--rule); }

h1 {
  font-size: clamp(48px, 5.2778vw, 76px); /* 76px at 1440, smaller on narrower desktops */
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.sub { font-size: 20px; line-height: 1.45; color: var(--grey); max-width: 520px; text-wrap: pretty; }
.terms { font-size: 20px; line-height: 1.45; }
.contact-line { font-size: 16px; line-height: 1.5; color: var(--grey); }

/* Form */
.form { display: flex; flex-direction: column; gap: 36px; }
.form h2 { font-size: 20px; font-weight: 500; line-height: 1.2; }
.fields { display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-size: 11px;
  line-height: 1;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.field input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--underline);
  border-radius: 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  caret-color: var(--fg);
}
.field input:focus, .field input:focus-visible { outline: none; border-bottom-color: var(--fg); }
.field:focus-within label { color: var(--fg); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg) inset; /* keeps Chrome's autofill tint off the dark field */
}
.error { font-size: 13px; line-height: 1.4; color: var(--fg); }
.is-invalid input { border-bottom-color: var(--fg); }

.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 18px 28px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.button:disabled { cursor: default; }
.small { display: flex; flex-direction: column; gap: 8px; }
.note { font-size: 13px; line-height: 1.4; color: var(--grey); }
.alt { font-size: 14px; line-height: 1.4; color: var(--grey); }
.sent { font-size: 17px; line-height: 1.5; }
.sent:focus { outline: none; }

/* Text pages: privacy, thanks, 404 */
.text { max-width: 640px; padding: 40px 0 64px; display: flex; flex-direction: column; gap: 32px; }
.text h1 { font-size: 40px; line-height: 1.05; }
.text section { display: flex; flex-direction: column; gap: 12px; }
.text h2 { font-size: 20px; font-weight: 500; line-height: 1.2; }
.text p { font-size: 17px; line-height: 1.5; }
.text .meta { font-size: 13px; line-height: 1.4; color: var(--grey); }
.text .statement { font-size: 20px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }

/* Footer */
.legal {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey);
}
.legal a { flex: none; }

/* Mobile (designed at 390) */
@media (max-width: 767px) {
  .page { padding: 32px 24px 28px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
  .logo { width: 148px; height: 19px; }
  .times { justify-content: flex-start; gap: 12px 20px; font-size: 11px; }
  .grid, .left { display: block; padding: 0; }
  .cell { gap: 24px; padding: 28px 0 36px; }
  .cell-contact { gap: 28px; padding: 28px 0 40px; border-left: 0; border-top: 1px solid var(--rule); }
  h1 { font-size: clamp(32px, 10.2564vw, 40px); line-height: 1.05; } /* 40px at 390 */
  .sub, .terms { font-size: 17px; }
  .contact-line { font-size: 15px; }
  .text { padding: 28px 0 40px; gap: 28px; }
  .text h1 { font-size: 32px; }
  .legal { flex-wrap: wrap; padding-top: 16px; }
}
