/* Open Shore — "Horizon" corporate identity.
   Cool sibling to Uki: ink + deep-water accent (Uki keeps the amber).
   Restraint is the premium signal. Whitespace is the hero. One motion:
   the horizon hairline draws in once on load. Committed light "paper"
   aesthetic — the warm paper is the shared family DNA.
   Fonts self-hosted (variable, weight + optical-size axes) — no external
   origin, which is what lets the CSP stay a strict 'self'. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-standard.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-standard.woff2") format("woff2");
}

:root {
  --paper: #f6f4ef; /* a hair cooler/lighter than Uki's Snow */
  --ink: #1c2a33; /* deep slate-ink, not pure black */
  --ink-soft: #55636b; /* secondary text */
  --ink-faint: #8a949a; /* meta / labels */
  --water: #2f5a66; /* the single accent, used sparingly */
  --water-deep: #24454f;
  --hairline: #d9d4c9; /* dividers on paper */

  --measure: 42rem; /* ~672px single column */
  --step: 8px; /* baseline grid */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
    sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto; /* let Fraunces/Inter bloom at display sizes */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

a {
  color: var(--water);
  text-decoration: none;
  background-image: linear-gradient(var(--water), var(--water));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 220ms ease;
  padding-bottom: 1px;
}
a:hover,
a:focus-visible {
  background-size: 100% 1px;
}
a:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Layout ---------------------------------------------------------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 12vw, 120px) 24px clamp(48px, 8vw, 88px);
}

.block {
  margin-top: clamp(48px, 9vw, 96px);
}

/* ---- Masthead -------------------------------------------------------- */

.masthead {
  padding-bottom: calc(var(--step) * 1);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(28px, 6vw, 56px);
  color: var(--ink);
}

.identity {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  line-height: 1.11;
  letter-spacing: -0.014em;
  font-optical-sizing: auto;
  margin: 0;
  max-width: 20ch;
  color: var(--ink);
  text-wrap: balance;
}
.identity-coda {
  color: var(--ink-soft);
}

/* The one gesture: horizon hairline draws in on load. The line dissolves
   at both margins (gradient) so the shoreline fades rather than hard-stops. */
.horizon {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ink) 10%,
    var(--ink) 90%,
    transparent 100%
  );
  margin-top: clamp(32px, 7vw, 64px);
  transform: scaleX(0);
  transform-origin: left center;
  animation: draw-horizon 620ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

@keyframes draw-horizon {
  to {
    transform: scaleX(1);
  }
}

/* ---- Type helpers ---------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 calc(var(--step) * 2);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
}

/* ---- Registry (portfolio) ------------------------------------------- */

.registry {
  list-style: none;
  margin: 0;
  padding: 0;
}

.registry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(var(--step) * 3) clamp(4px, 2vw, 20px);
  margin: 0 clamp(-4px, -2vw, -20px);
  border-top: 1px solid var(--hairline);
  border-radius: 6px;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease;
}
.registry-row:hover {
  background-color: rgba(47, 90, 102, 0.04); /* whisper of deep-water */
}
.registry-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.registry-main {
  flex: 1 1 20rem;
  min-width: 0;
}

.registry-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 calc(var(--step) * 1);
  color: var(--ink);
}
.registry-descriptor {
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 1.1rem;
}

.registry-blurb {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 0.98rem;
}

.registry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--water-deep);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--water);
}
.status--in-development {
  color: var(--ink-faint);
}
.status--in-development::before {
  background: var(--ink-faint);
}

.registry-year {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ---- Contact + entity ----------------------------------------------- */

.contact {
  margin: 0;
}
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 calc(var(--step) * 1.5);
  align-items: baseline;
}
.contact-label {
  flex: 0 0 12rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.entity {
  font-style: normal;
  margin-top: calc(var(--step) * 4);
  padding-top: calc(var(--step) * 3);
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Prose ---------------------------------------------------------- */

.prose {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.lede--advisory,
.lede--close {
  max-width: 46ch;
}

/* ---- Wordmark unit crumb (OS Consulting) ---------------------------- */

.wordmark-link {
  color: var(--ink);
  background: none;
  padding: 0;
}
.wordmark-link:hover {
  color: var(--water);
}
.wordmark-sep {
  color: var(--ink-faint);
  margin: 0 6px;
}
.wordmark-unit {
  color: var(--ink-soft);
}

/* ---- Intro: headshot + lede ----------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}
.intro-grid .lede {
  max-width: 52ch;
}
.headshot {
  margin: 0;
}
.headshot-img,
.headshot-monogram {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.headshot-img {
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.headshot-monogram {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.7rem;
  letter-spacing: 0.01em;
  color: var(--water-deep);
  background: rgba(47, 90, 102, 0.08);
  border: 1px solid var(--hairline);
}
@media (max-width: 34rem) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---- Service pillars ------------------------------------------------ */

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(28px, 5vw, 44px);
}
.pillar {
  padding-top: calc(var(--step) * 3);
  padding-left: 0;
  border-top: 1px solid var(--hairline);
  transition:
    border-color 240ms ease,
    padding-left 240ms ease;
}
.pillar:hover {
  border-top-color: var(--water);
  padding-left: 10px;
}

/* Staggered rise on load — motion-sensitive users see them static. */
@media (prefers-reduced-motion: no-preference) {
  .pillar {
    opacity: 0;
    transform: translateY(12px);
    animation: pillar-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .pillar:nth-child(1) {
    animation-delay: 180ms;
  }
  .pillar:nth-child(2) {
    animation-delay: 250ms;
  }
  .pillar:nth-child(3) {
    animation-delay: 320ms;
  }
}
@keyframes pillar-rise {
  to {
    opacity: 1;
    transform: none;
  }
}
.pillar-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 calc(var(--step) * 1.5);
  color: var(--ink);
}
.pillar-promise {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 calc(var(--step) * 1.5);
  max-width: 44ch;
}
.pillar-covers {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 58ch;
}

/* ---- Edge callout --------------------------------------------------- */

.block--edge {
  padding: clamp(24px, 4vw, 36px);
  margin-left: clamp(-8px, -2vw, -24px);
  margin-right: clamp(-8px, -2vw, -24px);
  background: rgba(47, 90, 102, 0.05);
  border-radius: 10px;
}

/* ---- Proof rows (metric rail + outcome) ----------------------------- */

.registry-row--proof {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: baseline;
}
.proof-metric {
  display: flex;
  flex-direction: column;
}
.proof-metric-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.95rem;
  line-height: 1;
  color: var(--water-deep);
  font-variant-numeric: tabular-nums;
}
.proof-metric-label {
  margin-top: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.registry-role {
  margin: 0 0 calc(var(--step) * 1.5);
  color: var(--ink-faint);
  font-size: 0.92rem;
}
@media (max-width: 34rem) {
  .registry-row--proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---- Colophon ------------------------------------------------------- */

.colophon {
  margin-top: clamp(56px, 10vw, 104px);
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.colophon p {
  margin: 0;
}

/* ---- Motion / accessibility ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .horizon {
    animation: none;
    transform: scaleX(1);
  }
  a {
    transition: none;
  }
}

@media (max-width: 34rem) {
  .contact-label {
    flex-basis: 100%;
  }
  .registry-meta {
    width: 100%;
    justify-content: flex-start;
  }
}
