/* ucer.us
   Nordic bones: warm white ground, a grotesk, hairlines, a numbered register, air.
   Turkic details: the eight-pointed Seljuk star as the mark, and Iznik cobalt.
   Nothing else is decorated. */

:root {
  --paper: #F8F6F1;
  --ink: #15171A;
  --mute: #6E7176;
  --rule: #DDD9D1;
  --rule-strong: #BDB8AE;
  --cobalt: #1D3FA6;
  --cobalt-ink: #16308A;
  --photo-bg: #E9E5DD;

  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* The star: a square and the same square turned 45 degrees, on an 80 unit tile. */
  --star-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='13.4' y='13.4' width='53.2' height='53.2'/%3E%3Crect x='13.4' y='13.4' width='53.2' height='53.2' transform='rotate(45 40 40)'/%3E%3C/svg%3E");

  --gutter: clamp(20px, 4vw, 48px);
  --wrap: 1180px;

  color-scheme: light;
}

@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSerif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSerif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSerif-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSerif-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/SchibstedGrotesk-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/SchibstedGrotesk-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/SchibstedGrotesk-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/SchibstedGrotesk-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; text-wrap: balance; }
p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.star { display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.08em; color: var(--cobalt); flex: none; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}

/* Header */
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; padding-block: 26px 0; }
.brand { font-family: var(--serif); font-size: 1.9rem; line-height: 1; letter-spacing: -0.01em; }
.where { font-size: 0.86rem; color: var(--mute); display: flex; gap: 10px; align-items: center; }

/* Hero: a line of names on the left, the sunset on the quay on the right. */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px);
  align-items: end; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5.6rem);
  letter-spacing: -0.015em; line-height: 0.98;
}
.hero h1 em { font-style: italic; color: var(--cobalt); }
.lede { max-width: 40ch; margin-top: 28px; font-size: 1.08rem; line-height: 1.5; color: var(--mute); }
.lede a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); }
.lede a:hover { color: var(--cobalt); border-color: currentColor; }

.screen { margin: 0; aspect-ratio: 4 / 5; position: relative; }
.screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; background: var(--photo-bg);
}
.screen figcaption {
  position: absolute; left: 0; right: 0; bottom: -1.9em;
  font-size: 0.74rem; color: var(--mute); letter-spacing: 0.02em;
}

/* Register */
.register { padding-top: clamp(40px, 6vw, 72px); }
.register .eyebrow { padding-bottom: 16px; }
.row {
  display: grid; grid-template-columns: 3.5rem 200px minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(24px, 3vw, 48px);
  padding-block: 36px 44px; border-top: 1px solid var(--rule);
}
.register .row:last-of-type { border-bottom: 1px solid var(--rule); }
.no { font-variant-numeric: tabular-nums; font-size: 0.86rem; color: var(--mute); padding-top: 0.55rem; }
.portrait { aspect-ratio: 4 / 5; background: var(--photo-bg); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.who h3 { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.3rem); letter-spacing: -0.015em; }
.who .full { margin-top: 8px; color: var(--mute); font-size: 0.92rem; }
.who .role { margin-top: 22px; max-width: 28ch; line-height: 1.4; }
.who .site { margin-top: 24px; font-size: 0.92rem; }
.who .site a { color: var(--cobalt); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.who .site a:hover { color: var(--cobalt-ink); }
.who .site.soon { color: var(--mute); }
.who .site.soon .star { color: var(--rule-strong); }

.links { font-size: 0.95rem; }
.links div {
  display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: 9px; border-bottom: 1px solid var(--rule);
}
.links div:first-child { padding-top: 0.45rem; }
.links div:last-child { border-bottom: 0; }
.links dt { color: var(--mute); font-size: 0.78rem; letter-spacing: 0.04em; }
.links dd a { overflow-wrap: anywhere; border-bottom: 1px solid transparent; }
.links dd a:hover { color: var(--cobalt); border-color: currentColor; }

/* Footer */
.foot { margin-top: clamp(64px, 9vw, 120px); padding-bottom: 48px; }
.foot .band {
  height: 22px; background: var(--rule);
  -webkit-mask: var(--star-tile) center top / 22px 22px repeat-x;
          mask: var(--star-tile) center top / 22px 22px repeat-x;
}
.foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 40px; align-items: end; }
.foot .brand { font-size: 1.5rem; }
.foot p { color: var(--mute); font-size: 0.9rem; max-width: 52ch; }
.foot .cols > div > p { margin-top: 10px; }

/* Smaller screens */
@media (max-width: 960px) {
  .row { grid-template-columns: 3rem 160px minmax(0, 1fr); row-gap: 28px; }
  .links { grid-column: 3; }
}
@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .screen { aspect-ratio: 5 / 4; max-width: 440px; }
  .screen figcaption { position: static; margin-top: 10px; }
  .row { grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; padding-block: 28px 32px; }
  .no { grid-column: 1 / -1; padding-top: 0; }
  .portrait { grid-row: 2; }
  .who { grid-row: 2; }
  .who h3 { font-size: 2rem; }
  .who .role { margin-top: 12px; }
  .who .site { margin-top: 14px; }
  .links { grid-column: 1 / -1; grid-row: 3; }
  .foot .cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .row { grid-template-columns: 96px minmax(0, 1fr); }
  .who h3 { font-size: 1.8rem; }
  .links div { grid-template-columns: 5em minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
