/* DynamicPress landing page. Light only, whatever the visitor's system setting.
   Layout: a drafting table. Faint phi grid, two-column hero (copy | construction drawing),
   hairline spec rows for the services, a title block as the footer. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand colors. "press" grey sits at the golden cut between ground and ink (see brand/README.md). */
  --ground: #fbfbfc;
  --ink: #16181d;
  --press: #626468;
  --text: #3b3e44;
  --faint: #6b7079;
  --rule: #dfe2e7;
  --grid: rgb(22 24 29 / .05);
  --guide: #b9bec7;
  --panel: rgb(251 251 252 / .85);

  --f-brand: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --phi: 1.618;
  --cell: calc(1rem * var(--phi));     /* grid cell */
  --gutter: max(20px, 5vw);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  color: var(--ink);
  font-family: var(--f-brand);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--press); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding-block: 0 max(32px, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.kicker {
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: max(24px, env(safe-area-inset-top, 0px)) 24px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 34px; width: auto; }
.top .mail { font-family: var(--f-mono); font-size: 13px; color: var(--press); text-decoration: none; }
.top .mail:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px 48px;
  align-items: center;
  padding-block: 32px 56px;
}
.copy { display: grid; gap: 28px; }
h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 400;
  text-wrap: balance;
}
h1 span { color: var(--press); font-weight: 200; }
.lede { margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 42ch; }

/* Construction drawing */
.drawing { display: block; width: 100%; height: auto; overflow: visible; }
.drawing .guide { stroke: var(--guide); stroke-width: 1px; fill: none; vector-effect: non-scaling-stroke; }
.drawing .guide line, .drawing .guide circle { vector-effect: non-scaling-stroke; }
.drawing .dashed { stroke-dasharray: 3 3; }
/* The mark is point-symmetric, so its bounding-box centre is the pivot. */
.drawing .turn { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: dp-turn 6s infinite; }
.drawing .pivot { fill: var(--press); }
.drawing .label { fill: var(--faint); font-family: var(--f-mono); font-size: 3px; letter-spacing: .02em; }

/* Half a revolution, eased, then a long rest. 180deg looks the same as 0deg, so the loop is seamless. */
@keyframes dp-turn {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  20% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

/* Services */
.services { display: grid; gap: 16px; }
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.spec li {
  display: grid;
  grid-template-columns: 1.4em minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: center;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
}
.spec b { font-weight: 500; }
.spec .st { font-family: var(--f-mono); font-size: 14px; color: var(--press); }
.spec .dt { font-size: 16px; color: var(--text); }
.state { width: 1.2em; height: 1.2em; }
.state .ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.state .ring.dashed { stroke-width: .5; stroke-dasharray: 1.24 .62; }
.state .fill { fill: var(--ink); }

/* Contact */
.contact { display: grid; gap: 12px; padding-block: 64px 48px; }
.contact a {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  justify-self: start;
}
.contact a span { color: var(--press); font-weight: 200; }
.contact a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* Title block */
.titleblock {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--rule);
  background: var(--panel);
  font-family: var(--f-mono);
  font-size: 13px;
}
.titleblock div { padding: 12px 16px; border-right: 1px solid var(--rule); min-width: 0; }
.titleblock div:last-child { border-right: 0; }
.titleblock dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.titleblock dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.titleblock a { text-decoration: none; }
.titleblock a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 8px 40px; }
  .drawing { order: -1; max-width: 520px; justify-self: center; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock div { border-bottom: 1px solid var(--rule); }
  .titleblock div:nth-child(2n) { border-right: 0; }
  .titleblock div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 640px) {
  .spec li { grid-template-columns: 1.4em minmax(0, 1fr); gap: 4px 16px; align-items: start; }
  .spec .state { margin-top: .15em; }
  .spec .st, .spec .dt { grid-column: 2; }
  .contact { padding-block: 48px 36px; }
  .drawing .label { font-size: 4.4px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawing .turn { animation: none; }
}
