/* suffyse.com — the coming-soon page (ADR-17).
 *
 * The page is a vessel: ink above the waterline, amber fill below it. The
 * headword stands on the waterline; a ruler down the right edge marks
 * "enough" one tick above the fill. The vessel is nearly full.
 * Colours and families come from /tokens.css (brand/). */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  background: var(--suffyse-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--suffyse-ink);
  color: var(--suffyse-bone);
  font-family: var(--suffyse-font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.vessel {
  --gutter: clamp(24px, 7.5vw, 96px);
  --rule-inset: clamp(20px, 5.6vw, 72px);
  --rule-width: clamp(12px, 1.1vw, 14px);
  --tick: clamp(32px, 3.2vw, 40px);
  --band: 56px;
  /* Text keeps this far from the right edge, clear of the ruler. */
  --clear: calc(var(--rule-inset) + var(--rule-width) + 32px);

  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

/* --- above the waterline ---------------------------------------------------- */

.above {
  position: relative;
  z-index: 1; /* the headword's descender dips into the fill, over it */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  grid-template-rows: auto 1fr auto;
  column-gap: 48px;
  padding: clamp(28px, 3.4vw, 44px) var(--gutter) 0;
}

.masthead {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--suffyse-bone);
}

.lockup-mark {
  flex: none;
}

.lockup-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.year {
  font-family: var(--suffyse-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--suffyse-dust);
}

.quote {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: clamp(56px, 13vh, 132px) max(0px, calc(var(--clear) - var(--gutter))) 48px 0;
}

.quote blockquote {
  margin: 0;
  font-family: var(--suffyse-font-display);
  font-style: italic;
  font-size: clamp(24px, 2.35vw, 30px);
  line-height: 1.22;
  color: var(--suffyse-bone-soft);
  text-wrap: balance;
}

.quote figcaption {
  margin-top: 14px;
  font-family: var(--suffyse-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--suffyse-dust);
}

.quote cite {
  font-style: italic;
}

.headword {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
}

.pos {
  margin: 0 0 2px 0.6em;
  font-family: var(--suffyse-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--suffyse-dust);
}

/* The headword stands on the waterline: its baseline is the bottom edge of
 * this section, and the descender of the y hangs into the fill. */
h1 {
  margin: 0 0 -0.163em -0.02em;
  font-family: var(--suffyse-font-display);
  font-weight: 400;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--suffyse-bone);
}

.ruler {
  position: absolute;
  right: var(--rule-inset);
  width: var(--rule-width);
}

.ruler-above {
  top: clamp(96px, 14vh, 120px);
  bottom: 0;
  background: repeating-linear-gradient(to top,
      rgb(238 231 218 / 0.3) 0 1px, transparent 1px var(--tick));
}

/* "enough" sits one tick above the fill. */
.enough {
  position: absolute;
  right: var(--rule-inset);
  bottom: calc(var(--tick) - 10px);
  height: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--suffyse-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--suffyse-meniscus);
}

.enough-line {
  width: 56px;
  height: 2px;
  background: var(--suffyse-meniscus);
}

/* --- below the waterline ---------------------------------------------------- */

.below {
  position: relative;
  z-index: 0;
  /* The band shares the screen: the fill gives up its height, so the
   * waterline stays put and the page still fits one screen. */
  min-height: calc(38vh - var(--band));
  min-height: calc(38svh - var(--band));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(36px, 5vh, 44px) max(var(--gutter), var(--clear)) clamp(28px, 3.4vw, 44px) var(--gutter);
  background: var(--suffyse-fill);
  border-top: 2px solid var(--suffyse-meniscus);
  color: var(--suffyse-on-fill);
}

.ruler-below {
  top: calc(var(--tick) - 2px);
  bottom: 40px;
  background: repeating-linear-gradient(to bottom,
      rgb(23 20 15 / 0.3) 0 1px, transparent 1px var(--tick));
}

.tease {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
}

.tease span {
  text-wrap: balance;
}

.tease-lead {
  font-weight: 500;
  color: var(--suffyse-on-fill);
}

.tease-turn {
  color: var(--suffyse-on-fill-soft);
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 32px;
  font-family: var(--suffyse-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--suffyse-on-fill-quiet);
}

.senses {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-family: var(--suffyse-font-display);
  font-size: 16px;
  letter-spacing: normal;
}

.senses li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.sense-n {
  font-family: var(--suffyse-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--suffyse-on-fill-soft);
}

/* --- the band: the parent company ------------------------------------------ */

/* The attribution, per its kit (esposito-holdings/VERSION): an ink band
 * under the vessel, holding the single-colour mark tinted like the labels
 * above the waterline, with the kit's clear space on every side. */
.band {
  min-height: var(--band);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  line-height: 20px;
  background: var(--suffyse-ink);
  font-family: var(--suffyse-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--suffyse-dust);
}

.parent {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.parent:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.parent:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.parent-mark {
  flex: none;
  width: 20px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("/esposito-holdings/mark-mono.svg") center / contain no-repeat;
  mask: url("/esposito-holdings/mark-mono.svg") center / contain no-repeat;
}

/* --- narrow screens: one column --------------------------------------------- */

@media (max-width: 720px) {
  .above {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote {
    grid-column: 1;
    margin-top: clamp(56px, 11vh, 110px);
  }

  .enough {
    gap: 8px;
    font-size: 10px;
  }

  .enough-line {
    width: 28px;
  }

  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }

  .domain {
    align-self: flex-end;
  }

  .band {
    font-size: 12px;
  }
}
