/* Waking Matter — standalone identity page. No framework. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-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: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f1eee4;
  --paper-deep: #e4e0d4;
  --ink: #1b1a17;
  --ink-soft: #5a564e;
  --accent: #3e5853;
  --hair: rgba(27, 26, 23, 0.16);
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad-x: clamp(1.25rem, 5vw, 4.25rem);
  --pad-y: clamp(1.15rem, 3.2vw, 2.35rem);
  color-scheme: light;
}

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

html {
  height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("assets/grain.svg");
  background-size: 180px 180px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: 0.75rem;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + 0.25rem);
}

@media (min-width: 721px) {
  .frame {
    height: 100svh;
  }
}

.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.mast-mark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.mast-mark a {
  color: inherit;
  text-decoration: none;
}

.mast-contact {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mast-contact:hover,
.mast-contact:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--hair);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(5.5rem, 0.55fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: stretch;
  min-height: 0;
  padding: clamp(1.25rem, 4.5vh, 3.25rem) 0 clamp(0.85rem, 2.5vh, 1.75rem);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 38rem;
  padding-bottom: 4vh;
}

.wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(4.15rem, 13.5vw, 8.6rem);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 0.88;
  letter-spacing: -0.038em;
}

.wordmark span {
  display: block;
}

.lede {
  margin: clamp(1.6rem, 3.5vh, 2.4rem) 0 0;
  max-width: 19em;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}

.aside {
  margin: 1.35rem 0 0;
  padding-left: 0.95rem;
  max-width: 22em;
  border-left: 1px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.aside a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.aside a:hover,
.aside a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.specimen {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 0;
}

.core {
  display: block;
  width: clamp(4.6rem, 9vw, 6.75rem);
  height: 100%;
  min-height: 0;
  color: var(--paper-deep);
  overflow: visible;
}

.core-frame {
  pointer-events: none;
}

.band {
  opacity: var(--o);
}

.core-shell {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
}

.core-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--hair);
  pointer-events: none;
}

.colophon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}

.colophon p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.colophon a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.colophon a:hover,
.colophon a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--hair);
}

.note-page.stage {
  grid-template-columns: 1fr;
}

.note-page .hero {
  justify-content: center;
  padding-bottom: 2rem;
}

.note-page .lede {
  max-width: 22em;
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark span,
  .lede,
  .aside {
    animation: rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .wordmark span:nth-child(1) {
    animation-delay: 0.04s;
  }

  .wordmark span:nth-child(2) {
    animation-delay: 0.12s;
  }

  .lede {
    animation-delay: 0.22s;
  }

  .aside {
    animation-delay: 0.32s;
  }

  .band {
    animation: settle 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d);
  }
}

@keyframes rise {
  from {
    transform: translate3d(0, 0.45rem, 0);
  }

  to {
    transform: none;
  }
}

@keyframes settle {
  from {
    opacity: calc(var(--o) * 0.4);
  }

  to {
    opacity: var(--o);
  }
}

@media (max-width: 720px) {
  .stage {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 2.1rem;
    padding-top: 2rem;
  }

  .hero {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .wordmark {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .specimen {
    justify-content: flex-start;
    height: 14.5rem;
  }

  .core-shell,
  .core {
    width: 4.85rem;
    height: 14.5rem;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .lede {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark span,
  .lede,
  .aside,
  .band {
    animation: none !important;
    transform: none;
  }

  .band {
    opacity: var(--o);
  }
}
