@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14213D;
  --ink-soft: #3A4660;
  --brass: #C9A45C;
  --brass-deep: #A8843F;
  --brass-text: #7A5E23;
  --paper: #EDF0F3;
  --paper-raised: #F5F7F9;
  --line: #CCD3DC;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, .lede { text-wrap: balance; }
html { scrollbar-color: var(--line) var(--paper); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); font-weight: 600; margin: 0 0 20px; }
.eyebrow a { text-decoration: none; }

/* Home: logo, contact, projects link */
.home {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px;
  position: relative; overflow: hidden; z-index: 0;
}

.home .logo { width: min(640px, 90vw); height: auto; }
.home footer { position: absolute; bottom: 24px; left: 0; right: 0; font-size: .75rem; color: var(--ink-soft); }
.home footer a { text-decoration: none; }

/* Shared: gold divider and text links (home page + bottom of projects page) */
.rule { width: 48px; height: 1px; background: var(--brass); margin: 48px auto 36px; }
.links { display: flex; flex-direction: column; align-items: center; gap: 24px; font-size: 1rem; text-align: center; }
.links a, .links span { text-decoration: none; letter-spacing: .02em; }
.item { color: var(--ink); }
button.item { background: none; border: 0; font: inherit; letter-spacing: .02em; cursor: pointer; padding: 0 0 2px; }
/* The address line keeps its space so nothing moves when it appears */
.contact-out { font-size: .95rem; color: var(--ink-soft); min-height: 1.65em; }
.tagline-note { margin: 8px 0 0; color: var(--ink-soft); font-size: .9rem; }
.tagline { margin: 28px 0 0; color: var(--ink-soft); font-size: 1.05rem; text-wrap: balance; }
/* Underline reads as a link at rest; the ::after widens the touch target to 44px without moving the underline */
.item.is-link { position: relative; border-bottom: 1px solid var(--ink-soft); padding-bottom: 2px; transition: border-color .2s; }
.item.is-link::after, .page-head a.back::after { content: ""; position: absolute; inset: -12px -10px; }
.item.is-link:hover { border-color: var(--brass); }
.page-contact { padding-bottom: 48px; }
.page-contact .rule { margin: 0 auto 28px; }
.page-contact .links { gap: 8px; }
main > section { padding-bottom: 56px; }

/* Hexagon outline: home page only, pinned to the window */
.hero-mark { position: fixed; right: -60px; top: 50%; transform: translateY(-50%); width: 440px; height: auto; opacity: .09; pointer-events: none; z-index: -1; }

/* Projects */
.page-head { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head img { width: 260px; height: auto; }
.page-head a.back { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); text-decoration: none; }
.list-note { margin: -24px 0 32px; color: var(--ink-soft); }
.project .status { align-self: flex-start; margin: 0 0 14px; font-size: .7rem; letter-spacing: .08em; }
.page-title { line-height: 1.15; font-weight: 600; font-size: clamp(2rem, 4.5vw, 2.6rem); margin: 0 0 40px; letter-spacing: -.02em; }
.projects-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.project { background: var(--paper-raised); border: 1px solid var(--line); padding: 28px; }
.project h2 { font-weight: 600; font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -.01em; }
.project p { margin: 0 0 14px; color: var(--ink-soft); font-size: .95rem; }
.project-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s; }
.project-link .more { margin-top: auto; padding-top: 6px; color: var(--brass-text); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.project-link:hover { border-color: var(--brass); }
.project-link:hover .more { color: var(--ink); }

/* Project landing pages */

/* Running text (about page) */
.prose { max-width: 62ch; }
.prose p { margin: 0 0 20px; color: var(--ink-soft); font-size: 1.05rem; text-wrap: pretty; }
.prose .signoff { margin: 36px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.signoff .contact-out { display: block; margin-top: 4px; font-weight: 400; }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink-soft); }
.prose a:hover { text-decoration-color: var(--brass); }

/* In/out plate: what goes in, what comes out */
.plate { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: start; gap: 20px; margin: 0 0 56px; max-width: 760px; background: var(--paper-raised); border: 1px solid var(--line); padding: 20px 24px; }
.plate dl { margin: 0; }
.plate dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.plate dd { margin: 4px 0 0; color: var(--ink); }
.plate svg { width: 40px; height: 12px; margin-top: 30px; stroke: var(--brass); fill: none; stroke-width: 1.5; }
@media (max-width: 600px) {
  .plate { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plate svg { transform: rotate(90deg); width: 32px; height: 12px; margin: 0 auto; }
}
.project-hero { max-width: 760px; margin-bottom: 56px; }
.project-hero .page-title { margin-bottom: 16px; }
.status { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); border: 1px solid var(--brass); padding: 4px 10px; margin: 0 6px 20px 0; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.detail-block + .detail-block { margin-top: 40px; }
.detail-block h2 { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 14px; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); color: var(--ink-soft); position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border: 1.5px solid var(--brass); transform: rotate(45deg); }
.note { margin: 40px 0 0; padding: 16px 20px; border: 1px solid var(--brass); background: var(--paper-raised); color: var(--ink-soft); font-size: .95rem; }
.facts { background: var(--paper-raised); border: 1px solid var(--line); padding: 8px 24px; }
.facts dl { margin: 0; }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); padding-top: 16px; }
.facts dd { margin: 4px 0 0; padding-bottom: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.facts dd:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Smaller screens: shrink the outline and tuck it further off the edge so it clears the logo */
@media (max-width: 1200px) {
  .hero-mark { width: 300px; right: -110px; }
}
/* Phones and narrow tablets: move it to the bottom-right corner */
@media (max-width: 860px) {
  .hero-mark { width: 220px; top: auto; bottom: -50px; right: -70px; transform: none; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .page-head { flex-wrap: wrap; gap: 14px 24px; }
  .page-head img { width: min(320px, 100%); }
}
