/* Double R Advisory, design 34k-d (chosen Nov 23, 2026) with finish F (chosen Dec 6, 2026) */
:root {
  --slate: #466280;        /* home page */
  --deep: #39526D;         /* button, hovered */
  --white: #FFFCF4;        /* warm white */
  --compass: #E4434F;      /* compass red: the butterfly and the dimension line on slate */
  --paper: #FCF9F1;        /* inner pages: the warm white of the home page lettering, a shade deeper */
  --ink: #102030;
  --accent: #B51F33;       /* compass red, deepened for text on the pale pages */
  --muted: #4A5A6D;
  --rule: #D9D5CA;
  --display: "Libre Caslon Display", "Big Caslon", Georgia, serif;
  --text: "EB Garamond", "Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
}

.home-mark { display: inline-flex; align-items: center; height: 46px; color: var(--accent); }

.nav { display: flex; gap: 34px; }
.nav a {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Main */
main { flex: 1; display: flex; flex-direction: column; }

/* Inner pages */
.page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 68px);
  line-height: 1;
  margin: 0 0 40px;
}

.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.about--text { grid-template-columns: 1fr; max-width: 660px; }

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
  background: var(--rule);
  box-shadow: 0 1px 2px rgba(16,32,48,.18), 8px 14px 34px rgba(16,32,48,.22);
}

.bio-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

.bio-role {
  font-style: italic;
  color: var(--accent);
  margin: 4px 0 26px;
}

.bio p { margin: 0 0 18px; }
.bio ul { margin: 0 0 18px; padding-left: 1.1em; }
.bio li { margin: 0 0 8px; padding-left: 0.2em; }
.bio li::marker { color: var(--accent); }
.bio a { border-bottom: 1px solid var(--accent); transition: color 0.3s ease; }
.bio a:hover { color: var(--accent); }

.centred {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 96px;
}
.centred .page-title { margin-bottom: 28px; }

.forthcoming {
  font-style: italic;
  font-size: 24px;
  color: var(--muted);
  margin: 0;
}

.contact-line {
  font-style: italic;
  color: var(--muted);
  font-size: 21px;
  margin: 0 0 22px;
  max-width: 30ch;
}

.email {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.email:hover { color: var(--accent); }

/* Contact: intake form */
.page--narrow { max-width: 640px; }
.page--narrow .contact-line { max-width: none; margin-bottom: 10px; }
.intake { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 17px; color: var(--ink); }
.optional { font-style: italic; color: var(--muted); font-size: 15px; }
.field input, .field textarea {
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #FFFEFB;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 1px var(--slate); }
.field.invalid input, .field.invalid textarea { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.intake button {
  align-self: flex-start;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--slate);
  border: 0;
  border-radius: 2px;
  padding: 15px 34px;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(16,32,48,.25), 3px 6px 16px rgba(16,32,48,.2);
  transition: background 0.2s ease;
}
.intake button:hover { background: var(--deep); }
.intake button:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.intake button:disabled { opacity: 0.7; cursor: default; }
.form-status { margin: -6px 0 0; color: var(--accent); font-style: italic; min-height: 1.5em; }
.form-status:empty { display: none; }
.sent-line { font-style: italic; font-size: 22px; margin: 8px 0 0; outline: none; }
.direct { margin: 0 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.direct .email { font-size: 20px; color: var(--ink); margin-left: 4px; }

/* Footer */
.site-footer {
  margin: 0 40px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Home page: slate blue, the name top left, the butterfly bottom right.
   Sizes follow the width of the window, as in the 34k-d mock-up. */
body.landing { background: var(--slate); color: var(--white); position: relative; overflow-x: hidden; }
body.landing .site-header { justify-content: flex-end; padding: max(20px, 3.2vw) 4vw 0; }
body.landing .nav { gap: max(22px, 2.6vw); }
body.landing .nav a { color: var(--white); font-size: clamp(11px, 0.95vw, 15px); }
body.landing .nav a:hover { border-bottom-color: var(--compass); }

.lockup { align-self: flex-start; display: inline-block; padding: 10vh 0 0 7vw; }
.lockup-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 150px);
  line-height: 1;
  white-space: nowrap;
}
.dims { display: block; position: relative; height: 0; border-top: 1px solid var(--compass); margin: 1.6vw 0 0; }
.dims::before, .dims::after {
  content: ""; position: absolute; top: calc(-0.6vw - 0.5px); width: 1px; height: 1.2vw; min-height: 9px;
  background: var(--compass);
}
.dims::before { left: 0; }
.dims::after { right: 0; }
.lockup-tag {
  font-family: var(--text);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 44px);
  margin: 2.1vw 0 0 0.2vw;
}

.corner-mono { position: absolute; right: 6vw; bottom: 8vh; height: 7.66vw; color: var(--compass); display: block; transition: opacity 0.3s ease; }
.corner-mono:hover { opacity: 0.8; }
.corner-mono:focus-visible { outline: 1px solid var(--compass); outline-offset: 8px; }
.corner-mono svg, .home-mark svg { height: 100%; width: auto; display: block; overflow: visible; }

/* Finish F: light from the upper left, even word spaces in the name, one quiet entrance */
.ra { margin-left: .045em; }
.dbl { margin-right: -.03em; }
.lockup-name { -webkit-text-stroke: .006em var(--white);
  filter: drop-shadow(.008em .012em .006em rgba(10,23,40,.45)) drop-shadow(.05em .085em .06em rgba(10,23,40,.42)); }
.lockup-tag { text-shadow: .02em .04em .03em rgba(10,23,40,.4), .08em .16em .22em rgba(10,23,40,.4); }
.corner-mono svg { filter: drop-shadow(.07vw .11vw .05vw rgba(8,19,34,.5)) drop-shadow(.5vw .85vw .42vw rgba(8,19,34,.58)); }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .lockup, .corner-mono { animation: rise 1.4s ease both; } }

/* Phone */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .site-header { flex-direction: column; gap: 18px; padding: 24px 16px 8px; }
  .nav { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .nav a { font-size: 11px; letter-spacing: 0.12em; }
  .page { padding: 28px 16px 56px; }
  .page-title { text-align: center; margin-bottom: 30px; }
  .page--narrow .page-title, .page--narrow .contact-line { text-align: center; }
  .intake button { align-self: stretch; }
  .direct { text-align: center; }
  .direct .email { display: inline-block; margin: 6px 0 0; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 260px; margin: 0 auto; }
  .bio-name, .bio-role { text-align: center; }
  .site-footer { margin: 0 16px; padding: 18px 0 24px; }

  body.landing .site-header { align-items: center; padding: 22px 16px 0; }
  body.landing .nav { gap: 14px; }
  body.landing .nav a { font-size: 11px; }
  .lockup { padding: 9vh 16px 0; }
  .lockup-name { font-size: 11.5vw; }
  .dims { margin-top: 12px; }
  .dims::before, .dims::after { top: -5px; height: 10px; }
  .lockup-tag { font-size: 4.8vw; margin-top: 14px; }
  .corner-mono { right: 20px; bottom: 32px; height: 15vw; }
  .corner-mono svg { filter: drop-shadow(.5px .8px .4px rgba(8,19,34,.5)) drop-shadow(3.5px 6px 3px rgba(8,19,34,.58)); }
}
