/* Peel Studio's site: paper, ink and one warm accent. Light or dark follows the visitor's system. */
@font-face { font-family: "Bricolage"; src: url(/fonts/BricolageGrotesque-700.woff) format("woff"); font-weight: 700; font-display: swap }
@font-face { font-family: "Jakarta"; src: url(/fonts/PlusJakartaSans-400.woff) format("woff"); font-weight: 400; font-display: swap }
@font-face { font-family: "Jakarta"; src: url(/fonts/PlusJakartaSans-600.woff) format("woff"); font-weight: 600; font-display: swap }

:root {
  --paper: #F6F3EE;
  --card: #FFFFFF;
  --ink: #17171A;
  --soft: #5C5A57;
  --line: #E3DED6;
  --accent: #F2553D;
  --accent-ink: #FFFFFF;
  --dark: #17171A;
  --on-dark: #F6F3EE;
  --wm-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121214;
    --card: #1C1C1F;
    --ink: #F3F0EA;
    --soft: #A8A49E;
    --line: #2C2C30;
    --accent: #FF6B52;
    --dark: #000000;
    --wm-filter: invert(1);
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Jakarta", system-ui, sans-serif; overflow-x: hidden }
a { color: inherit }
img { max-width: 100%; display: block }
h1, h2, h3 { font-family: "Bricolage", "Jakarta", system-ui, sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 }
.top .wm { height: 40px; width: auto; filter: var(--wm-filter) }
.top nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px }
.top nav a { text-decoration: none }
.top nav a:hover { text-decoration: underline }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600 }
.btn.sm { padding: 8px 16px; font-size: 14px }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none }
.badge svg { width: 26px; height: 26px; fill: currentColor }
.badge span { display: flex; flex-direction: column; line-height: 1.1 }
.badge small { font-size: 11px }
.badge b { font-size: 19px; font-weight: 600 }

/* hero */
.hero { padding: 40px 0 72px }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin: 0 0 18px }
.hero h1 { font-size: clamp(44px, 7vw, 84px) }
.hero h1 em { font-style: normal; color: var(--accent) }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--soft); margin: 22px 0 28px; max-width: 34em }

/* sections */
section { padding: 72px 0 }
section.ink { background: var(--dark); color: var(--on-dark) }
section.ink .lede, section.ink .fact p { color: #B9B5AE }
.sec { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px }
section h2 { font-size: clamp(34px, 5vw, 56px); max-width: 14em }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center }
.split.flip > :first-child { order: 2 }
/* the shots are the App Store pictures, whole: their own background and type, so no frame round them */
.shot { display: block; width: min(320px, 100%); height: auto; margin-inline: auto; border-radius: 26px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 22px 44px -22px rgba(0,0,0,.28) }
.hero .shot { width: min(360px, 100%) }
section.soft { background: var(--card) }
.narrow { max-width: 760px }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px }
section.ink .fact { background: #222226; border-color: #333 }
.fact b { display: block; font-weight: 600; margin-bottom: 6px }
.fact p { margin: 0; color: var(--soft); font-size: 15px }

.cta { text-align: center; padding: 88px 0 }
.cta h2 { margin: 0 auto 26px }
.cta .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.35) }

/* reading pages */
main.read { width: min(760px, 100% - 32px); margin: 24px auto 80px }
main.read h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 14px }
main.read h2 { font-size: 26px; margin: 44px 0 12px }
main.read .stamp { font-size: 13px; color: var(--soft); margin: 0 0 8px }
main.read p, main.read li { color: var(--ink) }
main.read .row { padding: 14px 0; border-top: 1px solid var(--line) }
main.read .row b { display: block; margin-bottom: 4px }
main.read .row p { margin: 0 }
main.read ol, main.read ul { padding-left: 1.2em }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--soft) }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px }
.foot a { text-decoration: none }
.foot a:hover { text-decoration: underline }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr }
  .split.flip > :first-child { order: 0 }
  .hero { padding-top: 16px }
  .top nav .hide-sm { display: none }
  .shot, .hero .shot { width: min(300px, 82%) }
  section { padding: 56px 0 }
}
