/* =========================================================================
   Deymore — black & white, one page, read by flashlight.
   ========================================================================= */

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

/* ----------------------------------------------------------------- fonts */
/* Served from this site, so no visitor is handed to a third party. Inter is
   a variable font: one file covers every weight used here. */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-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: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-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: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/inter-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;
}

:root {
  --bg:      #050505;
  --ink:     #f4f3f0;
  --muted:   #8d8b86;
  --faint:   #55534f;
  --line:    rgba(244, 243, 240, .15);

  --display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad:     clamp(22px, 6vw, 88px);
  --measure: 34ch;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  /* A fine dot grid. Invisible in the dark, rewarding once the light hits it. */
  background-image: radial-gradient(circle at 1px 1px, rgba(244,243,240,.08) 1px, transparent 0);
  background-size: 30px 30px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(16px, 0.9vw + 13.4px, 19px);
  line-height: 1.62;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The cursor is replaced by the flashlight, but only once JS is alive. */
html.js body { cursor: none; }

/* Never flash the content before the veil is painted. */
html.js .page { visibility: hidden; }
html.js.veil-ready .page { visibility: visible; }

/* Film grain, sitting under the veil so the light picks it up. */
.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ------------------------------------------------------------------ hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16vh 0 13vh;
}

.eyebrow {
  margin: 0;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin: .22em 0 .26em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 16.5vw, 188px);
  line-height: .84;
  letter-spacing: -.018em;
  text-transform: uppercase;
}

.slogan {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(21px, 3.4vw, 38px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -.015em;
}

.meta {
  margin: 3.4em 0 0;
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------- section */

.section {
  padding: 15vh 0;
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.4em;
  margin-bottom: 2.6em;
}

.index {
  font-family: var(--display);
  font-size: .76rem;
  letter-spacing: .2em;
  color: var(--faint);
}

.section__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.012em;
  text-transform: uppercase;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.5em; }
.prose p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.5;
  letter-spacing: -.008em;
  color: var(--ink);
}
.prose p + p { color: var(--muted); }

/* The one claim a section is there to make, said once and large. */
.statement {
  margin: 0 0 1.6em;
  max-width: 21ch;
  font-size: clamp(26px, 4.2vw, 50px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.02em;
}

/* The one link in the hero: it points down at the product, so it has to look
   like something you can follow, not like more of the slogan. */
.hero__now {
  margin: 1.4em 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted);
}
.hero__now a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: rgba(244, 243, 240, .45);
  transition: text-decoration-color .2s ease, opacity .2s ease;
}
.hero__now a:hover { text-decoration-color: var(--ink); }
.hero__now a:active { opacity: .6; }
.hero__now a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

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

/* --------------------------------------------------------------- product */

.prose--wide { max-width: 46ch; }

/* What kind of thing the product is, said before its name. */
.product__kind {
  margin: 0 0 1.4em;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The app icon beside the name, sized off the wordmark so the two always
   match: the tile is as tall as the capitals. */
.product__brand {
  display: flex;
  align-items: center;
  gap: .28em;
  margin: 0 0 .16em;
  font-size: clamp(46px, 11vw, 120px);
}
.product__brand .product__wordmark { margin: 0; font-size: 1em; }

.product__logo {
  flex: none;
  display: block;
  width: .92em;
  height: .92em;
}

/* What Ships does, one short claim each. A hairline on top of every item
   carries the same rhythm as the section rules and the spec rows. */
.features {
  display: grid;
  gap: 2.4em clamp(36px, 5vw, 72px);
  margin: 4em 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px)  { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}

.feature__title {
  margin: 0 0 .55em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
  letter-spacing: -.004em;
}

.feature__text {
  margin: 0;
  max-width: 34ch;
  font-size: .94em;
  color: var(--muted);
}

.product__wordmark {
  margin: 0 0 .16em;
  font-family: var(--display);
  font-size: clamp(46px, 11vw, 120px);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.product__tagline {
  margin: 0 0 2em;
  max-width: 24ch;
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -.012em;
  color: var(--ink);
}

.spec {
  margin: 3em 0 0;
  max-width: 460px;
  border-top: 1px solid var(--line);
}

.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  padding: .95em 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}
.spec dd { margin: 0; font-size: .93rem; }

/* How to reach the founders. An address cannot break mid-word, so on a
   narrow screen it drops under the name instead of pushing the page wide. */
.contact__label {
  margin: 4.4em 0 0;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec--contact { margin-top: 1.4em; }
.spec--contact .spec__row { flex-wrap: wrap; align-items: baseline; gap: .3em 2em; }

.spec a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: rgba(244, 243, 240, .45);
  transition: text-decoration-color .2s ease, opacity .2s ease;
}
.spec a:hover { text-decoration-color: var(--ink); }
.spec a:active { opacity: .6; }
.spec a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 13vh 0 12vh;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__mark {
  margin: 0 0 1.1em;
  font-family: var(--display);
  font-size: clamp(30px, 7vw, 62px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__line {
  margin: 0 0 .5em;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer__note {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ======================================================= the veil & torch */

/* With the flashlight switched off nothing of it is left on the page — not
   the torch, not the hint, not the lines about it. */
html:not(.js) .torch,
html:not(.js) .hint,
html:not(.js) .torch-only { display: none; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  pointer-events: none;
}

.torch {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 60;
  pointer-events: none;
  color: var(--ink);
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
html.js.veil-ready .torch { opacity: .42; }
html.js.torch-on  .torch { opacity: 1; }

.torch svg {
  position: absolute;
  left: 0;
  top: -9px;
  transform: translateX(-50%);
  display: block;
}
html.js.torch-on .torch svg {
  filter: drop-shadow(0 0 10px rgba(255,255,255,.5))
          drop-shadow(0 -4px 18px rgba(255,255,255,.28));
}
.torch__lens { opacity: .35; transition: opacity .25s ease; }
html.js.torch-on .torch__lens { opacity: 1; }

/* ------------------------------------------------------------------ hint */

.hint {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  z-index: 70;
  pointer-events: none;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity .8s ease;
}
.hint.is-visible { opacity: .34; animation: breathe 4.6s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { opacity: .18; }
  50%      { opacity: .42; }
}

/* ----------------------------------------------------------- a11y, print */

@media (prefers-reduced-motion: reduce) {
  .hint.is-visible { animation: none; opacity: .34; }
}

@media print {
  html.js .page { visibility: visible; }
  .veil, .torch, .hint, .page::after { display: none !important; }
  body { background: #fff; color: #000; cursor: auto; }
  .feature__text, .hero__now, .prose p + p { color: #333; }
  .hero__now a, .spec a { color: #000; }
}

/* ------------------------------------------------------------- scrollbar */
/* The only clue that there is more page below, so it stays — just quieter. */

html { scrollbar-width: thin; scrollbar-color: rgba(244,243,240,.16) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(244,243,240,.16);
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(244,243,240,.26); }

/* ------------------------------------------------------- clicking is only ever
   the light switch. Nothing on this page is selectable, draggable or
   long-pressable, so a click cannot start a text selection by accident. */

html.js body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
html.js img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
