/* Okuden's own look: stickers on a sunny wall, no outlines. Colours and edges from src/theme/tokens.ts. */
@font-face { font-family: "Okuden Sans"; font-weight: 800; font-display: swap; src: url(/fonts/pretendard-800.woff2) format("woff2"); }
@font-face { font-family: "Okuden Sans"; font-weight: 500; font-display: swap; src: url(/fonts/pretendard-500.woff2) format("woff2"); }
@font-face { font-family: "Okuden Serif"; font-weight: 400; font-display: swap; src: url(/fonts/serif-kr.woff2) format("woff2"); }
@font-face { font-family: "Okuden Serif"; font-weight: 400; font-display: swap; src: url(/fonts/serif-jp.woff2) format("woff2"); unicode-range: U+4F1D, U+5965; }

:root {
  --sun: #FFD103;
  --sun-edge: #C29F02; /* edgeOn(sun): the raised edge of a black or white thing on the yellow wall */
  --ink: #000000;
  --white: #FFFFFF;
  --page: #EADCBD;
  --page-ink: #1F1A13;
  --age: 92, 62, 20;
  --sans: "Okuden Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: "Okuden Serif", "Noto Serif KR", "AppleMyungjo", serif;
}

* { box-sizing: border-box; }
html { background: var(--sun); }
body {
  margin: 0;
  color: var(--ink);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, p { margin: 0; }
.col { width: min(100% - 40px, 720px); margin-inline: auto; }

/* The wall, with the clouds of the app icon */
.wall { position: relative; overflow: hidden; padding: 44px 0 4px; }
.cloud { position: absolute; fill: var(--white); }
.cloud-l { width: 210px; left: -64px; top: 30px; }
.cloud-r { width: 170px; right: -48px; top: 150px; }
.hero { position: relative; text-align: center; }
.sprout { display: block; width: min(78vw, 340px); height: auto; margin: 0 auto; }
.sprout.small { width: min(60vw, 220px); }
.lead { margin-top: 22px; font-weight: 800; font-size: clamp(27px, 6.4vw, 38px); line-height: 1.25; letter-spacing: -0.025em; }
.sub { margin: 10px auto 0; max-width: 26em; font-size: 18px; }

main.col { display: grid; gap: 24px; padding: 34px 0 12px; }

/* A sheet of the book's old paper: the same tile, edges and stain as the reader */
.sheet {
  padding: 30px 30px 32px;
  color: var(--page-ink);
  font: 400 19px/1.9 var(--serif);
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse 34% 20% at 78% 70%, rgba(var(--age), 0.07), rgba(var(--age), 0) 70%),
    linear-gradient(to bottom, rgba(var(--age), 0.17), rgba(var(--age), 0) 30px, rgba(var(--age), 0) calc(100% - 30px), rgba(var(--age), 0.15)),
    linear-gradient(to right, rgba(var(--age), 0.12), rgba(var(--age), 0) 38px, rgba(var(--age), 0) calc(100% - 38px), rgba(var(--age), 0.12)),
    url(/img/paper.jpg);
  background-size: 100% 100%, 100% 100%, 100% 100%, 256px 256px;
  border-radius: 30px 24px 32px 26px / 26px 32px 24px 30px;
  transform: rotate(-1.4deg);
}

/* White stickers */
.sticker {
  background: var(--white);
  padding: 22px 24px 24px;
  border-radius: 26px 30px 24px 28px / 28px 24px 30px 26px;
}
.sticker h2 { font-weight: 800; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 6px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features .sticker:nth-child(4n+1) { transform: rotate(-0.9deg); }
.features .sticker:nth-child(4n+2) { transform: rotate(0.7deg); }
.features .sticker:nth-child(4n+3) { transform: rotate(0.5deg); }
.features .sticker:nth-child(4n) { transform: rotate(-0.6deg); }
.about { transform: rotate(0.4deg); }
.about p + p { margin-top: 10px; }
@media (min-width: 700px) {
  .features { grid-template-columns: 1fr 1fr; }
  /* A wide sheet tilted as far as a narrow one reads crooked */
  .sheet { transform: rotate(-0.7deg); }
  .about { transform: rotate(0.25deg); }
}

.contact { padding: 8px 4px 0; }
.contact h2 { font-weight: 800; font-size: 21px; margin-bottom: 4px; }
.contact p { margin-bottom: 18px; }

/* The one thing to press: a black pill on a raised edge in the wall's own colour */
.pill {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--sun-edge);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.pill:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sun-edge); }
.pill:focus-visible { outline: none; box-shadow: 0 5px 0 var(--sun-edge), 0 0 0 4px var(--white), 0 0 0 7px var(--ink); }

.foot { padding: 40px 0 48px; font-size: 15px; }
.foot p + p { margin-top: 2px; }

.lost main.col { display: block; padding: 72px 0; }
.lost .pill { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
