/*
 * shrinely.app in Design C (design/brand-guidelines.md): Off-white ground, Ink type, Panel cards,
 * a black bar like the app's nav bar, one Red light. Anton announces, Archivo talks.
 * Fonts are served from this site (no third-party requests, no cookies, no analytics).
 */
@font-face {
  font-family: 'Anton';
  src: url('/fonts/Anton_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo_700Bold_Italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #ece8e1;
  --panel: #f6f3ee;
  --track: #dfdad2;
  --ink: #141210;
  --slate: #57514a;
  --line: #ddd8cf;
  --bar-label: #9c958c;
  --bar-active: #f5efe8;
  --red: #c8202a;
  --blue: #2148d0;
  --yellow: #f2b31b;
  --amber: #ffb347;
  --anton: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --archivo: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 16px/1.5 var(--archivo);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px var(--gutter) 64px;
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--ink);
  color: var(--panel);
}

/* The header: icon C, the wordmark, and engraved links with a light over the page you're on. */
.top {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px var(--gutter) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.brand svg {
  color: var(--ink);
  width: 30px;
  height: auto;
  display: block;
}
.brand span {
  font: 400 30px/1 var(--anton);
  letter-spacing: 0.01em;
}
.top nav {
  display: flex;
  gap: 4px;
}
.top nav a,
.engraved {
  font: 600 11px/1 var(--archivo);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.top nav a {
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.top nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
.top nav a[aria-current='page'] {
  color: var(--ink);
}
.top nav a[aria-current='page']::before {
  background: var(--red);
}

/* Type */
h1 {
  font: 400 44px/1.05 var(--anton);
  margin: 28px 0 16px;
  letter-spacing: 0.005em;
}
h2 {
  font: 700 19px/1.3 var(--archivo);
  margin: 36px 0 8px;
}
h3 {
  font: 700 16px/1.4 var(--archivo);
  margin: 20px 0 4px;
}
p,
li {
  margin: 0 0 12px;
}
ul {
  padding-left: 20px;
  margin: 0 0 12px;
}
li {
  margin-bottom: 8px;
}
li::marker {
  color: var(--slate);
}
.lede {
  font-size: 19px;
  line-height: 1.45;
}
.soft {
  color: var(--slate);
}
.small {
  font-size: 14px;
  color: var(--slate);
}
cite,
.title {
  font-style: italic;
  font-weight: 700;
}
strong {
  font-weight: 700;
}
.engraved {
  display: block;
  margin: 0 0 10px;
}

/* Panels */
.panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(20, 18, 16, 0.08);
}
.panel > :last-child {
  margin-bottom: 0;
}
.deep {
  background: var(--ink);
  color: var(--bar-active);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 32px 0;
}
.deep .engraved {
  color: var(--bar-label);
}
.deep a {
  color: var(--bar-active);
}
.deep > :last-child {
  margin-bottom: 0;
}
.recessed {
  background: var(--track);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
}
.recessed > :last-child {
  margin-bottom: 0;
}
mark.confirm {
  background: #f9e3a6;
  color: var(--ink);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Home */
.hero {
  padding: 12px 0 8px;
}
.hero h1 {
  font-size: 56px;
  margin-top: 16px;
}
.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.readout li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.light.film {
  background: var(--red);
}
.light.book {
  background: var(--blue);
}
.light.album {
  background: var(--yellow);
  box-shadow: 0 0 0 1px #8f5208;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  counter-reset: step;
}
.steps li {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 12px;
  box-shadow: 0 1px 2px rgba(20, 18, 16, 0.08);
}
.steps .say {
  font: 400 26px/1.1 var(--anton);
  display: block;
  margin: 0 0 8px;
}
.steps p {
  margin: 0;
  color: var(--slate);
}
.pyramid-art {
  display: block;
  color: var(--bar-active);
  width: 96px;
  height: auto;
  margin: 0 0 20px;
}
.big {
  font: 400 40px/1.05 var(--anton);
  margin: 0 0 12px;
}

/* Invite */
.code {
  font: 700 40px/1.2 var(--archivo);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 16px;
}

/* 404 */
.empty {
  display: flex;
  gap: 10px;
  margin: 28px 0 0;
}
.empty span {
  width: 54px;
  height: 80px;
  border: 1.5px dashed #b5aea3;
  border-radius: 2px;
}

/* Footer: the app's black nav bar, with engraved links. */
.foot {
  background: var(--ink);
  color: var(--bar-label);
  padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.foot-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot a,
.foot .engraved {
  color: var(--bar-label);
  margin: 0;
}
.foot a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot a:hover,
.foot a[aria-current='page'] {
  color: var(--bar-active);
}
.foot .mail {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.foot .tagline {
  font: 400 18px/1 var(--anton);
  color: var(--bar-active);
  letter-spacing: 0.01em;
}

@media (min-width: 720px) {
  main {
    padding-top: 16px;
  }
  h1 {
    font-size: 52px;
  }
  .hero h1 {
    font-size: 76px;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .steps li {
    margin: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 120ms ease;
  }
}

/* Who runs Shrinely, under the footer's links. */
.foot .operator {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bar-label);
}
