/* Ozdel — calm, typographic, no JavaScript. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.5a72f59de5.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.393c383347.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F3ED;
  --ink: #1B2038;
  --muted: #565A70;
  --rule: #DCD7CC;
  --accent: #B8492F;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131522;
    --ink: #EDE9E1;
    --muted: #A3A5B6;
    --rule: #2A2D3E;
    --accent: #F08B6E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accessibility helpers */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 1rem; }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Header */
.site-header { padding-top: clamp(1.75rem, 4vw, 3.5rem); }
.logo { display: block; height: 2rem; width: auto; color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(5rem, 14vw, 10rem) clamp(4.5rem, 10vw, 8rem); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 10.4em;
  text-wrap: balance;
}
.lead {
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  color: var(--muted);
}

/* Section labels */
.label {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font: 400 .8125rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Products */
.product-list > li { border-top: 1px solid var(--rule); }
.product-list > li:last-child { border-bottom: 1px solid var(--rule); }
.product {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  text-decoration: none;
  color: inherit;
}
.product:focus-visible { outline-offset: .75rem; border-radius: 8px; }
.num {
  grid-row: 1;
  padding-top: .55rem;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.head, .body, .domain { grid-column: 2; }
.name {
  display: inline;
  font: 340 clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem)/1.08 var(--serif);
  letter-spacing: -0.012em;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  padding-bottom: .04em;
  transition: background-size .5s var(--ease);
}
.claim {
  display: block;
  margin-top: .65rem;
  font-size: 1.125rem;
  line-height: 1.45;
}
.desc { display: block; max-width: 31em; color: var(--muted); }
.note {
  display: inline-block;
  margin-top: .9rem;
  padding: .2rem .65rem;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.domain {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  justify-self: start;
  color: var(--accent);
  white-space: nowrap;
}
.arrow { width: .75em; height: .75em; transition: transform .4s var(--ease); }
.product:hover .name,
.product:focus-visible .name { background-size: 100% 1px; }
.product:hover .arrow,
.product:focus-visible .arrow { transform: translate(2px, -2px); }

@media (min-width: 56rem) {
  .product {
    grid-template-columns: 4rem minmax(0, 1.05fr) minmax(0, 1fr) 11rem;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }
  .num { padding-top: 1.1rem; }
  .head { grid-column: 2; }
  .body { grid-column: 3; padding-top: .85rem; }
  .domain { grid-column: 4; grid-row: 1; justify-self: end; padding-top: .85rem; }
}

/* Statement */
.statement { padding-block: clamp(5rem, 11vw, 9rem) 0; }
.statement p {
  max-width: 25em;
  font: 300 clamp(1.5rem, 1.05rem + 1.7vw, 2.375rem)/1.32 var(--serif);
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

/* Contact */
.contact { padding-block: clamp(5rem, 11vw, 9rem); }
.mail {
  font: 300 clamp(2rem, 1.1rem + 4.2vw, 4.75rem)/1.1 var(--serif);
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  text-decoration-color: var(--rule);
  overflow-wrap: anywhere;
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
.mail:hover { text-decoration-color: currentColor; }

/* Footer */
.site-footer {
  padding-block: 2rem 2.5rem;
  font-size: .875rem;
  color: var(--muted);
}
.site-footer p { border-top: 1px solid var(--rule); padding-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
