@charset "utf-8";

/* =========================================================================
   James Armstrong — holding page
   Same type and colour system as the wider house style, pared back to a
   single centred column.
   ========================================================================= */

/* -------------------------------------------------------------- 1. Tokens */

:root {
  --paper:      #f5f4f0;
  --ink:        #1c1e1a;
  --ink-soft:   #55584f;
  --ink-faint:  #85887e;
  --rule:       #d6d3c9;
  --accent:     #21384c;
  --alert:      #8c3b2c;

  --display: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--2: 0.7188rem;
  --step--1: 0.8125rem;
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.32vw, 1.3125rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem);
}

/* --------------------------------------------------------------- 2. Reset */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

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

/* --------------------------------------------------------------- 3. Shell */

/* Centred column, optically centred on tall viewports but never clipped. */
.shell {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 2.5rem) 3rem;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-footer { margin-top: auto; padding-top: 4rem; }

/* ---------------------------------------------------------- 4. Typography */

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0 0 1.25rem;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.masthead .eyebrow { margin-bottom: 1.75rem; }

.lede {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(2.75rem, 7vw, 4rem) 0;
}

/* ---------------------------------------------------------------- 5. Form */

.contact .eyebrow { margin-bottom: 2rem; }

.field-row { display: grid; gap: 0 1.5rem; }

.field { display: grid; margin: 0 0 1.75rem; }

.field label {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.5rem 0;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 6.5rem; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--ink-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--alert); }

.field-error {
  font-size: var(--step--1);
  color: var(--alert);
  margin-top: 0.375rem;
}

/* Honeypot — off-screen, never focusable, never announced. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.8125rem 1.5rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn span { transition: transform 0.25s ease; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover span { transform: translateX(4px); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn[disabled]:hover { background: transparent; color: var(--ink); }
.btn[disabled]:hover span { transform: none; }

.form-status {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 28ch;
}
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--alert); }

/* -------------------------------------------------------------- 6. Footer */

.site-footer p {
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------------------------------------------------------- 7. Responsive */

@media (min-width: 34em) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- 8. Print */

@media print {
  .contact-form { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
