/* Kinsay's website, kinsay.waysidefoundry.com (card WK-369), in the approved leather and gold look
   (design/leather/README.md on design/leather-and-gold): paper in light, leather in dark, IM Fell
   English for the name and headings, the app's own Wayside Book (Gentium Book) for every saying. */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/im-fell-english-400.woff2) format("woff2"); }

:root {
  --page: #F3EAD8 url(assets/texture-paper-512.jpg) repeat;
  --page-solid: #F3EAD8;
  --ink: #2A1B11; --ink-soft: #4A3726; --ink-faint: #6B5440;
  --gold: #6E4D16; --rule: rgba(110, 77, 22, .35);
  --panel: rgba(255, 251, 242, .66); --field: #FFFBF2;
  --spine: #3A2416 url(assets/texture-leather-512.jpg) repeat;
  --spine-ink: #F1E4C8; --spine-gold: #E3C276;
  --button: linear-gradient(180deg, #F6DE92 0%, #D8B25A 38%, #A97A26 70%, #E2BE68 100%);
  --button-ink: #1B110B;
  --r: 16px;
  --head: "IM Fell English", Georgia, "Times New Roman", serif;
  --body: "Wayside Book", "Noto Serif Devanagari", Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #2A1A12 url(assets/texture-leather-dark-512.jpg) repeat;
    --page-solid: #2A1A12;
    --ink: #F1E4C8; --ink-soft: #D6C4A2; --ink-faint: #B9A483;
    --gold: #E3C276; --rule: rgba(227, 194, 118, .32);
    --panel: rgba(18, 10, 6, .62); --field: rgba(0, 0, 0, .42);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); background-attachment: scroll; color: var(--ink); font: 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3, .brand { font-family: var(--head); font-weight: 400; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(38px, 8vw, 64px); line-height: 1.04; margin: 0 0 14px; }
h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; margin: 0 0 12px; }
h3 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--field); padding: 8px 12px; }
.kicker { font-family: var(--head); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.lede { font-size: clamp(19px, 2.6vw, 22px); color: var(--ink-soft); max-width: 40em; }
.fine { font-size: 15px; color: var(--ink-faint); }
.gold { color: var(--gold); }

/* The top bar: a book's spine, leather in both themes. */
.top { background: var(--spine); color: var(--spine-ink); border-bottom: 2px solid #A97A26; position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--spine-gold); text-decoration: none; font-size: 28px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--spine-ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 17px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--spine-gold); }

/* Buttons and the store tags. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px;
  font: 18px/1.2 var(--body); text-decoration: none; color: var(--ink); border: 1px solid var(--rule); background: var(--panel); cursor: pointer; }
.btn.gold-btn { background: var(--button); color: var(--button-ink); border-color: #A97A26; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag { display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 8px 16px; border-radius: 12px;
  background: var(--spine); color: var(--spine-ink); border: 1px solid #A97A26; }
.tag small { font-size: 13px; color: var(--spine-gold); letter-spacing: .08em; text-transform: uppercase; }
.tag b { font-family: var(--head); font-weight: 400; font-size: 20px; }

section { padding-block: clamp(40px, 7vw, 80px); }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Home: the opening. */
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero .mark { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); margin-bottom: 18px; }
.hero .phone { justify-self: center; width: min(320px, 80vw); border-radius: 30px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); border: 1px solid var(--rule); }

/* A saying, as the app shows one. */
.saying { display: grid; gap: 8px; }
.saying .vol { font-family: var(--head); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.saying .line { font-size: clamp(26px, 4.4vw, 34px); line-height: 1.25; font-weight: 700; }
.saying .label { font-family: var(--head); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
.saying .en { font-size: 20px; color: var(--ink-soft); }
.saying .reading { border-left: 3px solid var(--rule); padding-left: 12px; font-size: 19px; }
.saying .src { font-size: 16px; color: var(--ink-faint); }

/* The shelves: the app's own covers, made to read as cloth on a leather ledge. */
.shelf { margin-top: 26px; }
.shelf h3 { margin-bottom: 4px; }
.shelf .note { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 14px; padding: 16px 14px 22px; border-radius: 12px;
  background: linear-gradient(transparent calc(100% - 14px), rgba(0, 0, 0, .28) calc(100% - 14px)), var(--panel); border: 1px solid var(--rule); }
.book { margin: 0; display: grid; gap: 6px; }
.book .cover { position: relative; border-radius: 4px 7px 7px 4px; overflow: hidden; box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
.book .cover::before { content: ""; position: absolute; inset: 0; background: url(assets/texture-cloth-weave-256.jpg); mix-blend-mode: multiply; opacity: .12; }
.book .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 9%), radial-gradient(120% 90% at 50% 50%, transparent 70%, rgba(255, 255, 255, .14)); }
.book figcaption { font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.book figcaption b { display: block; color: var(--ink); font-weight: 700; }

/* Two columns of reasons, the price, the list. */
.grid2 { display: grid; gap: 18px; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid3 { display: grid; gap: 18px; }
@media (min-width: 820px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.price .plans { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 640px) { .price .plans { grid-template-columns: repeat(3, 1fr); } }
.price .plan { text-align: center; }
.price .plan .amount { font-family: var(--head); font-size: 40px; color: var(--gold); line-height: 1.1; }

/* Anything marked hidden stays hidden, whatever the styles say. */
[hidden] { display: none !important; }

/* Features: each one up close with a real screen. */
.feature { display: grid; gap: 22px; align-items: center; padding-block: 36px; border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 340px; } .feature:nth-of-type(even) { grid-template-columns: 340px 1fr; } .feature:nth-of-type(even) .shot { order: -1; } }
.feature .shot { justify-self: center; width: min(320px, 82vw); border-radius: 28px; border: 1px solid var(--rule); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.feature ul { padding-left: 1.2em; margin: 0; }
.feature li { margin-bottom: 6px; }
.shot-light { display: block; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { .shot-light { display: none; } .shot-dark { display: block; } }

/* The open page: one shared saying. */
.open { padding-block: 40px 64px; }
.open .card { max-width: 680px; display: grid; gap: 14px; }

/* The footer. */
.foot { background: var(--spine); color: var(--spine-ink); padding: 28px 0 36px; border-top: 2px solid #A97A26; }
.foot .wrap { display: grid; gap: 12px; }
.foot a { color: var(--spine-gold); }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot .fine { color: #D6C4A2; }
