/* trevoremaloney.com — site styles */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #FAFAF8;
  --ink: #141414;
  --body: #2A2A2A;
  --soft: #3A3A3A;
  --muted: #555555;
  --rule: #C9C9C4;
  --accent: #C8361B;
  --sp-indigo: #1C1A4A;
  --sp-lantern: #F5D547;
  --sp-candle: #D9C878;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* Small type: labels, dates, scoring */
.mono { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.meta { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }

/* Header */
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.site-nav a { display: inline-block; padding: 12px 0; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* The Still Point button and wordmark: still ● point */
.sp-button {
  display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 16px !important;
  background: var(--sp-indigo); color: var(--sp-lantern) !important;
  font-family: var(--sans); font-size: 16px; letter-spacing: 0; text-transform: none; white-space: nowrap; text-decoration: none;
}
.sp-button:hover { background: #24215C; color: #FFE88A !important; }
.dot { display: inline-block; width: 0.22em; height: 0.22em; margin: 0 0.2em; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* Title page (top of each page) */
.title-page { padding-top: clamp(80px, 11vw, 128px); padding-bottom: clamp(88px, 12vw, 136px); display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.title-page .rule { width: 64px; height: 1px; background: var(--ink); }
.title-page h1 { font-weight: 300; font-style: italic; font-size: clamp(56px, 10vw, 128px); line-height: 0.98; letter-spacing: -0.01em; }
.title-page .subtitle { font-style: italic; font-weight: 400; font-size: 24px; color: var(--accent); }
.title-page .lead { max-width: 38rem; font-size: 24px; line-height: 1.45; color: var(--soft); }
.title-page .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; padding-top: 8px; }
.title-page .links a { padding: 12px 0; text-underline-offset: 6px; }
.title-page.compact { padding-bottom: clamp(56px, 8vw, 96px); }

/* Catalog rows */
.works { display: flex; flex-direction: column; }
.work {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px;
  padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.works > .work:first-of-type { border-top-color: var(--ink); }
.works > .work:last-child { border-bottom: 1px solid var(--rule); }
.work .year.meta { flex: 0 0 80px; }
.work .title { flex: 1 1 320px; font-size: 32px; line-height: 1.2; font-weight: 400; }
.work .meta { flex: 0 1 320px; }
.work .buy { padding: 10px 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.works.small .work { padding: 18px 0; }
.works.small .title { font-size: 26px; }
a.work:hover .title { color: var(--accent); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; }
.section-head a { padding: 10px 0; }
.catalog { display: flex; flex-direction: column; gap: 88px; padding-bottom: 120px; }
.catalog h2 { margin-bottom: 18px; }
.catalog .note { margin: -8px 0 18px; font-style: italic; font-weight: 400; font-size: 20px; color: var(--muted); }

/* Ruled sections */
.ruled { border-top: 1px solid var(--ink); }
.band { padding-block: clamp(80px, 11vw, 120px); }

/* Home: intro beside portrait */
.intro { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 96px; }
.intro figure { margin: 0; flex: 1 1 320px; max-width: 440px; }
.intro .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.intro .text .lead { font-style: italic; font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.4; color: var(--ink); }
.intro .text p { color: var(--body); }
.intro .text a { align-self: flex-start; padding: 12px 0; text-underline-offset: 6px; }

/* Home: Still Point band, in Still Point's own colors */
.sp-band { background: var(--sp-indigo); color: var(--sp-lantern); font-family: var(--sans); font-weight: 400; text-align: center; }
.sp-band .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.sp-band .mark { font-size: clamp(52px, 11vw, 112px); line-height: 1; white-space: nowrap; font-weight: 400; }
.sp-band p { max-width: 36rem; font-size: 20px; line-height: 1.6; color: var(--sp-candle); }
.sp-band .label { color: var(--sp-lantern); font-family: var(--sans); }
.sp-band h2:not(.mark) { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.sp-cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; padding: 0 26px; background: var(--sp-lantern); color: var(--sp-indigo) !important; font-family: var(--sans); font-weight: 500; font-size: 16px; text-decoration: none; }
.sp-cta:hover { background: #FFE88A; }
.sp-band.split { text-align: left; }
.sp-band.split .wrap { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 80px; }
.sp-band.split .wrap > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }

/* Home: stay in touch */
.contact { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.contact h2, .big-italic { font-weight: 300; font-style: italic; font-size: clamp(44px, 6vw, 56px); line-height: 1.05; }
.contact p { max-width: 34rem; line-height: 1.55; color: var(--soft); }
.ink-button { display: inline-flex; align-items: center; min-height: 52px; margin-top: 8px; padding: 0 28px; background: var(--ink); color: var(--paper) !important; text-decoration: none; }
.ink-button:hover { background: var(--accent); }

/* About */
.bio { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 112px; display: flex; flex-direction: column; gap: 24px; font-size: 23px; line-height: 1.65; color: var(--body); }
.bio .opening { font-size: clamp(25px, 2.6vw, 30px); line-height: 1.45; font-weight: 400; color: var(--ink); }
.bio h2 { margin-top: 32px; color: var(--ink); }
.bio figure { margin: 24px 0 16px; display: flex; flex-direction: column; gap: 12px; }
.bio figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1.5; color: var(--muted); }
.bio blockquote { margin: 40px 0; padding: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: center; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.25; font-weight: 300; font-style: italic; color: var(--ink); }
.bio blockquote + h2 { margin-top: 0; }

.experience { display: flex; flex-direction: column; gap: 56px; }
.experience > h2 { text-align: center; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px 64px; }
.exp-grid h3 { margin-bottom: 14px; }
.exp-grid ul { list-style: none; margin: 0; padding: 0; }
.exp-grid li { display: flex; gap: 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 22px; line-height: 1.35; }
.exp-grid li:first-child { border-top-color: var(--ink); }
.exp-grid li:last-child { border-bottom: 1px solid var(--rule); }
.exp-grid li .meta { flex: 0 0 96px; font-size: 12px; }

/* Footer */
.site-footer .wrap > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 28px 0 48px; border-top: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.site-footer a { color: var(--ink); text-transform: none; letter-spacing: 0.02em; }

/* 404 */
.not-found { min-height: 60vh; justify-content: center; }

@media (max-width: 560px) {
  body { font-size: 20px; }
  .bio { font-size: 21px; }
  .work .title { font-size: 28px; }
  .work .year.meta { flex-basis: 100%; }
  .exp-grid li { flex-direction: column; gap: 4px; font-size: 20px; }
  .exp-grid li .meta { flex-basis: auto; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
