/* SOTHU — sothu.app. The side of a moving box: kraft ground, stencil numbers,
   a packing list ruled in hairlines, and the path to a thing as the spine. */

:root {
  --kraft: #e6d9bf;
  --kraft-deep: #d8c7a4;
  --ink: #1c1a17;
  --ink-soft: #5b5244;
  --rule: #1c1a1733;
  --amber: #f2b53d;
  --night: #121110;
  --stencil: "Big Shoulders Stencil", "Big Shoulders", Impact, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --edge: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--kraft); color: var(--ink); }

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  /* Kraft fibre: two soft noise layers, no image to load. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .18' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E"),
    var(--kraft);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- the strip along the top edge ---------- */
.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--edge);
  border-bottom: 1px solid var(--ink);
}
.strip .word { font-family: var(--stencil); font-size: 30px; letter-spacing: .06em; text-decoration: none; }
.strip nav { display: flex; gap: 22px; }
.strip nav a { text-decoration: none; }
.strip nav a:hover { text-decoration: underline; }

/* ---------- the box side ---------- */
.side {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: clamp(40px, 8vw, 110px) var(--edge) 0;
  overflow: hidden;
}
.side .number {
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(120px, 26vw, 440px);
  line-height: .78;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-left: -.04em;
}
.side .number span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.side .this-way {
  order: 2;
  flex: none;
  text-align: right;
  padding-bottom: 6px;
}
.side .this-way b { display: block; font-family: var(--stencil); font-size: 34px; letter-spacing: .1em; }

.lede {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  padding: 36px var(--edge) 0;
  border-top: 1px solid var(--ink);
  margin-top: 28px;
}
.lede h1 {
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.lede h1 em { font-style: italic; }
.lede p { font-size: 21px; color: var(--ink-soft); margin-top: 8px; }
.lede .soon { margin-top: 22px; display: inline-block; padding: 10px 16px; background: var(--ink); color: var(--kraft); }

/* ---------- the path: the answer to "where is my passport?" ---------- */
.path {
  margin: clamp(48px, 8vw, 96px) 0 0;
  padding: 22px var(--edge);
  background: var(--night);
  color: #f3ecdd;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px;
}
.path .ask { font-style: italic; font-size: clamp(22px, 2.6vw, 32px); margin-right: 18px; }
.path .hop { font-family: var(--mono); font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.path .sep { opacity: .35; }
.path .end { font-family: var(--stencil); font-size: clamp(26px, 3vw, 40px); background: var(--amber); color: var(--night); padding: 0 12px; letter-spacing: .06em; }

/* ---------- the packing list ---------- */
.list { padding: clamp(56px, 9vw, 120px) var(--edge) 0; }
.list > header { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }

.row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(16px, 4vw, 56px);
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.row .idx { font-family: var(--stencil); font-size: 96px; line-height: .8; }
.row h2 { font-family: var(--stencil); font-size: clamp(56px, 7vw, 104px); line-height: .85; letter-spacing: .02em; }
.row h3 { font-weight: 400; font-style: italic; font-size: 26px; margin: 14px 0 10px; }
.row p { max-width: 34em; color: var(--ink-soft); }
.row p + p { margin-top: 10px; }
.row figure {
  background: var(--night);
  padding: 10px 10px 0;
  transform: rotate(var(--tilt, 1.2deg));
  box-shadow: 0 1px 0 var(--ink);
}
.row figure img { border-radius: 4px 4px 0 0; }
.row figure figcaption { color: #f3ecdd99; padding: 8px 2px 10px; }
.row:nth-of-type(2) figure { --tilt: -1.4deg; }

/* ---------- the promise ---------- */
.promise {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(56px, 9vw, 120px) var(--edge);
}
.promise h2 { font-weight: 400; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.015em; }
.promise dl { border-top: 2px solid var(--ink); }
.promise dl div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.promise dt { padding-top: 4px; }
.promise dd { color: var(--ink-soft); }

/* ---------- the price, stamped ---------- */
.price {
  margin: 0 var(--edge);
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.price .amount { font-family: var(--stencil); font-size: clamp(72px, 11vw, 160px); line-height: .9; padding: 18px 28px; border-right: 2px solid var(--ink); }
.price p { padding: 18px 28px; font-size: 22px; }
.price p small { display: block; margin-top: 6px; }

/* ---------- a page of words: privacy, support ---------- */
.doc { padding: clamp(40px, 7vw, 90px) var(--edge) 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.doc .head h1 { font-family: var(--stencil); font-size: clamp(64px, 9vw, 130px); line-height: .85; letter-spacing: .02em; }
.doc .head p { margin-top: 14px; }
.doc .body { max-width: 40em; }
.doc .body h2 { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid var(--ink); padding-top: 10px; margin: 40px 0 12px; }
.doc .body h2:first-child { margin-top: 0; }
.doc .body p, .doc .body li { color: #2e2a24; }
.doc .body p + p { margin-top: 12px; }
.doc .body ul { padding-left: 1.1em; margin-top: 8px; }
.doc .body li + li { margin-top: 6px; }
.doc .short { font-size: 26px; line-height: 1.3; color: var(--ink); font-style: italic; }

/* ---------- the bottom edge ---------- */
footer {
  margin-top: clamp(56px, 9vw, 120px);
  padding: 22px var(--edge) 30px;
  border-top: 1px solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
}
footer nav { display: flex; gap: 22px; }

@media (max-width: 820px) {
  .lede, .promise, .doc { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row .idx { font-size: 64px; }
  .row figure { max-width: 300px; }
  .side { flex-direction: column; align-items: flex-start; }
  .side .this-way { order: 0; text-align: left; }
  .promise dl div { grid-template-columns: 1fr; gap: 4px; }
  .price { grid-template-columns: 1fr; }
  .price .amount { border-right: 0; border-bottom: 2px solid var(--ink); }
  .strip nav { gap: 14px; }
}
