/* WE.ST site styles. Plain CSS, no external requests: the fonts are in fonts/.
   Layout and sizes follow the "WE.ST landing page" design canvas (Home and Pane app page). */

/* Fonts, served from this site. Each is under the SIL Open Font License; see fonts/OFL-*.txt. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  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: 400 700;
  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;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-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 {
  color-scheme: light dark;

  --paper: #f3f1ec;
  --paper-1: #eeebe5;
  --paper-2: #e9e6df;
  --card: #fbfaf7;
  --ink: #17191c;
  --ink-body: #2c2f34;
  --ink-2: #4b5058;
  --rule: #d6d2c8;
  --accent: #005fb8;
  --accent-hover: #004a91;
  --icon-tile: #fbfaf7;

  --serif: "Newsreader", "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121315;
    --paper-1: #17181b;
    --paper-2: #1a1c1f;
    --card: #1a1c1f;
    --ink: #ecebe6;
    --ink-body: #d6d5d0;
    --ink-2: #a8adb5;
    --rule: #2e3136;
    --accent: #80b7f2;
    --accent-hover: #b3d4f8;
    --icon-tile: #f3f1ec;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

main {
  flex-grow: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

/* Wordmark: the dot is the only colored part. */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark .dot {
  color: var(--accent);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 4rem;
}

.site-header .wordmark {
  font-size: 1.375rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Small monospaced lines: labels, meta, numbers. Sentence case, no tracking. */
.kicker,
.meta {
  font: 0.875rem/1.4 var(--mono);
  color: var(--ink-2);
}

.kicker {
  display: block;
  margin: 0 0 1rem;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* Status line: a state, not a link. The dot is the one from the wordmark. */
.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font: 0.875rem/1.4 var(--mono);
  color: var(--ink);
}

.status::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Buttons: one filled primary, one outlined secondary. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.button--outline {
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
}

/* Sections share one rule above and one vertical rhythm. */
.section {
  border-top: 1px solid var(--rule);
}

.section > .wrap {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

/* Home: the motto is the headline. Sentence in serif; in "WEST" the W is sans and EST is mono. */
.intro .wrap {
  padding-block: clamp(4rem, 9.5vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

.motto {
  max-width: 60rem;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.motto-west {
  white-space: nowrap;
}

.motto-w {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.motto-est {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* Home: "Apps" label on the left, the list of app cards on the right. */
.apps > .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  padding-block: 4.5rem 5.5rem;
}

.apps-head {
  flex: 1 1 12.5rem;
}

.apps-head h2 {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.app-list {
  flex: 999 1 35rem;
  min-width: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.app-icon {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 16px;
  background: var(--icon-tile);
  box-shadow: 0 0 0 1px var(--rule);
}

.app-body {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-body h3 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.app-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.app-body h3 a:hover {
  text-decoration: underline;
}

.app-body .meta {
  margin: 0.25rem 0 0;
}

.app-body .about {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-body);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.app-links .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
}

/* Product page: hero */
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem 4.5rem;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7.5vw, 6rem);
}

.hero .copy {
  flex: 1 1 27.5rem;
  min-width: 0;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero .tagline {
  margin: 0 0 1.25rem;
  max-width: 30rem;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero .lede {
  max-width: 31rem;
}

.hero .meta {
  margin: 1.5rem 0 0;
}

.hero .art {
  flex: 1 1 22.5rem;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Hero picture: a sunset "wallpaper" with one sheet of frosted glass in front of it. */
.pane-scene {
  position: relative;
  width: 100%;
  max-width: 27.5rem;
  aspect-ratio: 11 / 12;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 28px;
}

.pane-scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pane-glass {
  position: absolute;
  left: 14%;
  top: 16%;
  width: 58%;
  height: 66%;
  border: 1px solid rgba(236, 235, 230, 0.32);
  border-radius: 24px;
  background: rgba(236, 235, 230, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

/* Product page: features, a plain list with the name on the left */
.features h2 {
  max-width: 45rem;
  margin-bottom: 1rem;
}

.features .lede {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.spec {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.spec div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.spec dt {
  flex: 0 0 15rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.15;
}

.spec dd {
  flex: 1 1 20rem;
  min-width: 0;
  margin: 0;
  color: var(--ink-2);
}

/* Product page: privacy, text on the left and three facts on the right */
.privacy > .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4.5rem;
}

.privacy .copy,
.privacy .facts {
  flex: 1 1 25rem;
  min-width: 0;
}

.privacy h2 {
  margin-bottom: 1.25rem;
}

.privacy .lede {
  max-width: 32rem;
}

.facts {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.facts li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

/* Product page: details */
.details-section h2 {
  margin-bottom: 2.5rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.25rem), 1fr));
  gap: 0 2rem;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.details div {
  padding: 1rem 0;
}

.details dt {
  margin-bottom: 0.25rem;
  font: 0.875rem/1.4 var(--mono);
  color: var(--ink-2);
}

.details dd {
  margin: 0;
  font-weight: 500;
}

.details dd.code {
  font: 0.9375rem/1.6 var(--mono);
}

/* Product page: closing, left aligned */
.closing > .wrap {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.closing h2 {
  max-width: 50rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.closing .lede {
  max-width: 32rem;
}

/* Long-form text: the privacy policy */
.doc {
  max-width: 42rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.doc h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 3.75rem);
  margin-bottom: 0.75rem;
}

.doc h2 {
  font-size: 1.5rem;
  letter-spacing: 0;
  margin: 2.75rem 0 0.75rem;
}

.doc ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.doc li {
  margin-bottom: 0.5rem;
}

.doc .meta {
  margin-bottom: 2.25rem;
}

.doc .summary {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 12px;
}

.doc .summary h2 {
  margin-top: 0;
}

.doc .summary p:last-child {
  margin-bottom: 0;
}

.crumbs {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer p {
  margin: 0.25rem 0 0;
}

.site-footer .wordmark {
  font-size: 1.25rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: flex-start;
}

.site-footer .note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.875rem;
}

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