/* Tomorrow Inc. — tomorrowinc.dev */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #0e0e0d;
  --text: #f1ece1;
  --muted: #a39b8a;
  --gold: #d4af6e;
  --hairline: rgba(212, 175, 110, 0.22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .6, .2, 1);
  color-scheme: dark;
}

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

html {
  overflow-x: hidden; /* the mark's glow is wider than a 320px viewport */
  overflow-x: clip;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
h1,
ul {
  margin: 0;
  padding: 0;
}

/* Column */

.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.intro picture {
  position: relative;
  display: block;
}

.mark {
  display: block;
  width: 72px;
  height: 72px;
}

.title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.rule {
  width: 40px;
  height: 1px;
  margin: 20px 0 0;
  border: 0;
  background: var(--gold);
}

.tagline {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--muted);
}

.what {
  max-width: 360px;
  text-wrap: balance;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Sunrise glow: .glow carries the load rise (transform) and pointer parallax
   (translate, set by site.js); .glow-core breathes. */

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  pointer-events: none;
  mix-blend-mode: screen; /* the blurred tail can never darken the page into a visible rim */
  will-change: transform, opacity;
}

.glow-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 110, 0.22) 0%, rgba(212, 175, 110, 0.08) 30%, rgba(212, 175, 110, 0) 62%);
  filter: blur(22px);
  will-change: transform, opacity;
}

/* Products */

.products {
  margin-top: 56px;
  list-style: none;
}

.products li + li .row {
  border-top: 0;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  text-decoration: none;
}

.name {
  font-size: 18px;
  line-height: 1.3;
  transition: color 150ms ease;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 11px;
  text-indent: 0.14em; /* balance trailing letter-spacing */
  color: var(--gold);
}

.status-text {
  margin-right: -0.14em; /* align last letter with the row edge */
}

.arrow {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--gold);
  transition: transform 150ms ease;
}

.row-link:hover .name {
  color: var(--gold);
}

.row-link:hover .arrow {
  transform: translateX(3px);
}

.row-link:focus {
  outline: none;
}

.row-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 24px 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-email {
  position: relative;
  display: inline-block;
  min-height: 1.5em; /* reserve the line before site.js fills it in */
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  transition: color 200ms ease;
}

.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--gold);
}

.contact-email:hover::after,
.contact-email:focus-visible::after {
  transform: scaleX(1);
}

.contact-email:focus {
  outline: none;
}

.contact-email:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Desktop */

@media (min-width: 640px) {
  .title {
    font-size: 72px;
  }

  .tagline {
    font-size: 28px;
  }

  .row {
    min-height: 72px;
  }
}

/* Very narrow: keep status on the same line */

@media (max-width: 359px) {
  .name {
    font-size: 16px;
  }
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dawn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  from {
    opacity: 0.85;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

.glow {
  animation: dawn 1400ms var(--ease) both;
}

.glow-core {
  animation: breathe 8s ease-in-out 1400ms infinite alternate both;
}

.mark-in {
  animation: fade 1400ms var(--ease) both;
}

.rise {
  animation: rise 500ms var(--ease) both;
}

.r1 { animation-delay: 80ms; }
.r2 { animation-delay: 160ms; }
.r3 { animation-delay: 240ms; }
.r4 { animation-delay: 320ms; }
.r5 { animation-delay: 400ms; }
.r6 { animation-delay: 480ms; }

/* Tab hidden (set by site.js) */
.is-hidden .glow,
.is-hidden .glow-core,
.is-hidden .mark-in,
.is-hidden .rise {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .mark-in {
    animation: fade 150ms ease both;
  }

  .glow,
  .glow-core {
    animation: none;
  }

  .contact-email::after {
    transition: none;
  }

  .arrow {
    transition: none;
  }

  .row-link:hover .arrow {
    transform: none;
  }
}
