@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  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: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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 {
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --bg: #f2efe5;
  --surface: #faf8f2;
  --surface-soft: #e8e4d5;
  --fg: #2b2a25;
  --muted: #666159;
  --border: #c7cec5;
  --accent: #527365;
  --accent-fg: #fbfaf5;
  --focus-offset: #f2efe5;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --page: min(92vw, 1600px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b18;
    --surface: #202520;
    --surface-soft: #292f2a;
    --fg: #eeeade;
    --muted: #b5b0a5;
    --border: #4a584e;
    --accent: #8caf9e;
    --accent-fg: #171b18;
    --focus-offset: #171b18;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-offset), 0 0 0 6px var(--accent);
  border-radius: var(--radius-sm);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  min-height: 76px;
  padding: 12px max(4vw, calc((100vw - 1600px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  min-height: 48px;
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  text-decoration: none;
  line-height: 1.05;
}
.brand-mark {
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand > span { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; }
.brand small { margin-top: 4px; color: var(--accent); font-size: .63rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.site-header nav, footer nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.site-header nav a, footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.site-header nav a:hover, footer nav a:hover { color: var(--accent); text-decoration-color: currentColor; }
.site-header nav a:active, footer nav a:active { transform: translateY(1px); }
.parent-link::after { content: "↗"; margin-left: 7px; font-size: .78em; }
.language-link {
  min-width: 42px;
  justify-content: center;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main { width: 100%; }
.hero, .story, .paired, .manifesto, .workbench, .closing, footer { width: var(--page); margin-inline: auto; }

.hero {
  min-height: calc(100svh - 76px);
  padding: clamp(64px, 8vw, 132px) 0 clamp(88px, 10vw, 160px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.hero-copy { z-index: 2; grid-column: 1 / 7; padding-bottom: 5vw; }
.status {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.status span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bg);
  background: var(--accent);
}
.hero h1, .manifesto h2, .story h2, .paired h2, .workbench h2, .closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero h1 { max-width: 11ch; font-size: clamp(3.5rem, 6.8vw, 7.3rem); line-height: .9; }
.hero-lead { max-width: 50ch; margin: clamp(28px, 4vw, 54px) 0 0; font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.65; }
.availability { max-width: 48ch; margin: 22px 0 0; color: var(--muted); font-size: .89rem; }

.hero-figure { grid-column: 6 / 13; margin: 6vw 0 0; transform: rotate(.7deg); }
.product-frame {
  position: relative;
  margin-block: 0;
  overflow: hidden;
  background: #e8e4d5;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.product-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent) 1px, transparent 1.2px);
  background-size: 17px 17px;
  opacity: .13;
  mix-blend-mode: multiply;
}
.product-frame picture { display: block; }
.product-frame img { width: 100%; height: auto; }
.product-frame figcaption {
  position: relative;
  z-index: 2;
  min-height: 48px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manifesto {
  padding: clamp(100px, 14vw, 220px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--border);
}
.folio, .chapter { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.manifesto .folio { grid-column: 1 / 4; margin: 10px 0 0; }
.manifesto h2 { grid-column: 4 / 13; max-width: 16ch; font-size: clamp(2.8rem, 5.8vw, 6.5rem); line-height: .96; }
.manifesto > p:last-child { grid-column: 7 / 12; margin: 44px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.23rem); }

.story {
  position: relative;
  padding: clamp(90px, 11vw, 170px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--border);
}
.story::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 15%;
  right: 0;
  width: 60%;
  height: 70%;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 32%, transparent) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
  opacity: .16;
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000 75%, transparent);
}
.story-copy { grid-column: 1 / 5; }
.story-copy .chapter, .paired-heading .chapter { margin: 0 0 26px; }
.story h2, .paired h2 { font-size: clamp(2.6rem, 4.3vw, 5rem); }
.story-copy > p:not(.chapter), .paired-heading > p:not(.chapter) { margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.16rem); }
.story-figure { grid-column: 5 / 13; }
.story-reverse .story-copy { grid-column: 9 / 13; grid-row: 1; }
.story-reverse .story-figure { grid-column: 1 / 9; grid-row: 1; }
.story-reverse::after { right: auto; left: 0; transform: scaleX(-1); }

.facts { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.facts li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--border); font-size: .9rem; font-weight: 600; }
.facts li::before { content: ""; position: absolute; left: 0; top: 23px; width: 9px; height: 9px; border: 2px solid var(--accent); transform: rotate(45deg); }

.paired {
  padding: clamp(100px, 12vw, 190px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--border);
}
.paired-heading { grid-column: 1 / 6; align-self: end; padding-bottom: 3vw; }
.paired-calendar { grid-column: 6 / 13; }
.paired-lists { grid-column: 1 / 8; margin-top: -4vw; }
.paired-lists + * { grid-column: 8 / 13; }

.feature-ledger { margin: 34px 0 0; border-top: 1px solid var(--border); }
.feature-ledger div { padding: 13px 0; border-bottom: 1px solid var(--border); }
.feature-ledger dt { font-family: var(--font-display); font-size: 1.23rem; font-weight: 600; }
.feature-ledger dd { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }

.workbench {
  padding: clamp(100px, 13vw, 200px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--border);
}
.workbench > header { grid-column: 1 / 6; }
.workbench header .chapter { margin: 0 0 26px; }
.workbench h2 { max-width: 11ch; font-size: clamp(2.8rem, 4.8vw, 5.6rem); line-height: .98; }
.workbench header > p:last-child { max-width: 40ch; margin: 30px 0 0; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.16rem); }
.workbench-ledger { grid-column: 7 / 13; margin: 0; border-top: 1px solid var(--border); }
.workbench-ledger div {
  padding: 19px 0;
  display: grid;
  grid-template-columns: minmax(150px, .72fr) 1.28fr;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.workbench-ledger dt { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.workbench-ledger dd { margin: 0; color: var(--muted); font-size: .9rem; }
.journal-start { position: relative; }
.journal-start::before {
  content: "Dziennik";
  position: absolute;
  top: 28px;
  right: 0;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 1;
  pointer-events: none;
}

.closing {
  min-height: 72svh;
  padding: clamp(110px, 15vw, 230px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-content: center;
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--border);
}
.closing > div:first-child { grid-column: 1 / 8; }
.closing h2 { max-width: 13ch; font-size: clamp(3.2rem, 6vw, 7rem); line-height: .93; }
.release-note { grid-column: 9 / 13; align-self: end; }
.release-note > p:first-child { margin: 0; color: var(--muted); }
.platform { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.platform strong { color: var(--accent); font-size: 1.1rem; }

footer {
  min-height: 112px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
}
footer p { margin: 0; }

@media (max-width: 1080px) {
  .site-header nav a:not(.parent-link):not(.language-link) { display: none; }
  .hero-copy { grid-column: 1 / 8; }
  .hero-figure { grid-column: 5 / 13; margin-right: 0; }
  .story-copy { grid-column: 1 / 6; }
  .story-figure { grid-column: 6 / 13; }
  .story-reverse .story-copy { grid-column: 8 / 13; }
  .story-reverse .story-figure { grid-column: 1 / 8; }
}

@media (max-width: 760px) {
  :root { --page: min(90vw, 680px); }
  .site-header { min-height: 68px; padding-inline: 5vw; }
  .brand > span { font-size: 1.06rem; }
  .brand small { font-size: .55rem; }
  .brand-mark { width: 28px; }
  .parent-link { font-size: 0 !important; }
  .parent-link::before { content: "iPhone"; font-size: .78rem; }
  .parent-link::after { font-size: .65rem; }

  .hero { min-height: auto; padding-top: 70px; display: block; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 10ch; font-size: clamp(3rem, 14.5vw, 5.2rem); }
  .hero-lead { margin-top: 32px; }
  .hero-figure {
    width: calc(100vw - 24px);
    margin: 56px 0 0 calc((100% - 100vw) / 2 + 12px);
    transform: rotate(.4deg);
  }

  .manifesto { display: block; padding-block: 100px; }
  .manifesto h2 { margin-top: 34px; font-size: clamp(3rem, 13vw, 5rem); }
  .manifesto > p:last-child { margin-top: 38px; }

  .story, .story-reverse, .paired, .workbench, .closing { display: flex; flex-direction: column; align-items: stretch; }
  .story { padding-block: 100px; }
  .story-copy, .story-reverse .story-copy { order: 1; }
  .story-figure, .story-reverse .story-figure {
    order: 2;
    width: calc(100vw - 24px);
    margin: 52px 0 0 calc((100% - 100vw) / 2 + 12px);
  }
  .story::after { width: 78%; right: 0; }
  .story-reverse::after { left: 0; }

  .paired { padding-block: 100px; }
  .paired-heading { padding: 0; }
  .paired-calendar, .paired-lists {
    width: calc(100vw - 24px);
    margin: 48px 0 0 calc((100% - 100vw) / 2 + 12px);
  }
  .paired-lists { margin-top: 26px; }

  .workbench { padding-block: 100px; }
  .workbench-ledger { margin-top: 46px; }
  .workbench-ledger div { grid-template-columns: 1fr; gap: 7px; }
  .journal-start::before { top: 36px; }

  .closing { min-height: 80svh; justify-content: center; }
  .closing h2 { font-size: clamp(3.2rem, 14vw, 5.5rem); }
  .release-note { margin-top: 44px; }

  .product-frame figcaption { padding-inline: 12px; font-size: .61rem; }
  footer { align-items: flex-start; }
  footer nav { flex-direction: column; align-items: flex-end; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .hero-figure { transform: none; }
}
