/* kosly.art — the look of the Wallpapers app (src/App.css "Journal" tokens) */
@font-face { font-family: Lora; src: url(/fonts/Lora.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f6f1ea; --surface: #ffffff; --surface-2: #ebe4da; --hairline: rgba(30, 26, 22, 0.12);
  --text: #1e1a16; --text-2: #6c635a; --accent: #9a4f2e; --btn-bg: #1e1a16; --btn-text: #f6f1ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412; --surface: #24211e; --surface-2: #2e2a26; --hairline: rgba(255, 255, 255, 0.14);
    --text: #efe8df; --text-2: #ada398; --accent: #e3a47f; --btn-bg: #efe8df; --btn-text: #161412;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.serif, h1, h2, h3 { font-family: Lora, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: Lora, Georgia, serif; font-size: 22px; font-weight: 600; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 36px 0 64px; }
.kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.06; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--text-2); margin: 0 0 28px; max-width: 30em; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.pill small { font-weight: 400; opacity: 0.7; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline); }
.phones { display: flex; justify-content: center; gap: 16px; }
.phones img { width: 46%; max-width: 230px; border-radius: 26px; box-shadow: 0 18px 50px rgba(30, 26, 22, 0.18); }
.phones img:nth-child(2) { margin-top: 48px; }

/* sections */
section { padding: 56px 0; border-top: 1px solid var(--hairline); }
section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.sub { color: var(--text-2); margin: 0 0 28px; }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 14px; display: block; background: var(--surface-2); }
.tile figcaption { font-family: Lora, Georgia, serif; font-size: 14px; margin-top: 6px; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px; }
.card h3 { font-size: 20px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

.shop { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* text pages */
.doc { max-width: 700px; margin: 0 auto; padding: 8px 22px 64px; }
.doc h1 { font-size: 36px; line-height: 1.15; margin: 12px 0 6px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.muted { color: var(--text-2); }
.doc li { margin: 4px 0; }

footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--text-2); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .wide { display: none; }
}
