/* SOMA Labs. Paper, washes of sky and leaf, and plenty of room. */

:root {
  color-scheme: light;
  --paper: #f8f3e8;
  --paper-deep: #f1e9d8;
  --ink: #2f3a33;
  --ink-soft: #55615a;
  --ink-faint: #7d867e;
  --leaf: #5d7a5f;
  --leaf-deep: #44604a;
  --sky: #9fbccc;
  --clay: #b88466;
  --rule: rgba(93, 122, 95, 0.28);
  --measure: 36rem;
  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --body: "Lora", "Iowan Old Style", "Palatino", Georgia, serif;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  /* Paper grain: fine fractal noise, barely there. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.28 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--leaf-deep);
  text-decoration-line: underline;
  text-decoration-color: rgba(68, 96, 74, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover { text-decoration-color: currentColor; color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.1em; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--paper);
  padding: 0.5rem 0.9rem;
  z-index: 10;
}
.skip:focus { left: 0.75rem; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.98rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: -4.5rem;
  padding-top: 4.5rem;
}

.hero-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero-sky svg { width: 100%; height: 100%; }

.cloud {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.cloud svg { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 140s ease-in-out infinite alternate; }
  .cloud.two { animation-duration: 190s; animation-delay: -60s; }
}
@keyframes drift {
  from { transform: translateX(-3vw); }
  to { transform: translateX(5vw); }
}

.hero-text {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 0;
}
.hero-text > * { max-width: 34rem; }

.eyebrow {
  font-family: var(--body);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.1rem);
  margin-bottom: 1.4rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}

.hero-land {
  position: relative;
  margin-top: 1rem;
  height: clamp(260px, 31vw, 450px);
}
.hero-land svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Content ---------- */

main { display: block; }

.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: clamp(1.6rem, 4.2vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.section-intro {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.works {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 3.5rem;
}

.work {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.work-art { width: 100%; max-width: 340px; aspect-ratio: 13 / 10; }
.work-art svg { width: 100%; height: 100%; }
.work h3 {
  font-size: clamp(1.55rem, 4.5vw, 1.95rem);
  margin-bottom: 0.25rem;
}
.work .where {
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.work p { max-width: 32rem; }
.more {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-variation-settings: "SOFT" 100;
}
.more { text-decoration: none; }
.more .label {
  text-decoration-line: underline;
  text-decoration-color: rgba(68, 96, 74, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.more:hover .label { text-decoration-color: currentColor; }
.more .arrow { display: inline-block; transition: transform 0.25s ease; }
.more:hover .arrow { transform: translateX(3px); }

@media (min-width: 760px) {
  .work { grid-template-columns: 340px 1fr; gap: 3rem; }
  .work:nth-child(even) .work-art { order: 2; }
  .work:nth-child(even) { grid-template-columns: 1fr 340px; }
}

.note {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
}

.brush-rule {
  display: block;
  width: min(420px, 80%);
  height: 18px;
  margin: 0 auto;
}

/* ---------- Commute page ---------- */

.status {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-variation-settings: "SOFT" 100;
  color: var(--leaf-deep);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
}

.features {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem 3.5rem;
}
@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.features h3 {
  font-size: 1.32rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.features h3::before {
  content: "";
  flex: none;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50% 45% 55% 48%;
  background: radial-gradient(circle at 40% 40%, rgba(143, 170, 140, 0.55), rgba(93, 122, 95, 0.75));
  transform: translateY(-0.08rem);
}
.features li:nth-child(3n+2) h3::before { background: radial-gradient(circle at 40% 40%, rgba(170, 196, 210, 0.6), rgba(110, 145, 165, 0.8)); }
.features li:nth-child(3n) h3::before { background: radial-gradient(circle at 40% 40%, rgba(222, 186, 160, 0.6), rgba(184, 132, 102, 0.8)); }
.features p { color: var(--ink-soft); margin: 0; }

.aside {
  max-width: var(--measure);
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- Text pages (privacy, support) ---------- */

.page-head {
  position: relative;
  isolation: isolate;
  margin-top: -4.5rem;
  padding: 7.5rem 1.25rem 0;
}
.page-head .hero-sky { height: 100%; }
.page-head-inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.page-head h1 {
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  margin-bottom: 0.8rem;
}
.page-head .treeline {
  display: block;
  width: 100%;
  height: clamp(90px, 14vw, 160px);
  margin-top: 1.5rem;
}

.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 0.7rem;
}
.prose h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.4rem;
}
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--leaf); }
.updated { font-style: italic; color: var(--ink-faint); }

.faq dt {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.faq dd { margin: 0; color: var(--ink-soft); }
.faq dd p:last-child { margin-bottom: 0; }

.contact {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.3rem, 4.6vw, 1.6rem);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: 2rem;
  padding: 0 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer .footer-grass {
  display: block;
  width: 100%;
  height: 70px;
}
.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-inner a { color: var(--ink-soft); }
.made {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--ink-soft);
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding: 2rem 1.25rem 1rem;
}
.lost h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 1rem; }
.lost p { max-width: 28rem; margin-left: auto; margin-right: auto; color: var(--ink-soft); }
.lost .pond { width: min(520px, 100%); height: auto; margin: 0 auto 1rem; }

@media (max-width: 420px) {
  .site-nav { gap: 1rem; font-size: 0.95rem; }
  .wordmark { font-size: 1.1rem; }
}
