/* AppDevILS: Independent Little Studio. Layout adapted from the ClickyLit site (ClickyLit/web/assets/site.css). */
:root {
  --paper: #fbf7f5;
  --surface: #ffffff;
  --ink: #1d1517;
  --ink-soft: #5e5254;
  --rule: #eaded9;
  --accent: #b8232b;
  --accent-ink: #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161112;
    --surface: #211a1b;
    --ink: #f3ebe9;
    --ink-soft: #b9abac;
    --rule: #3b3132;
    --accent: #f0625c;
    --accent-ink: #161112;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 6vw, 3.25rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }

.wrap-wide { max-width: 60rem; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap-wide {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark img { width: 32px; height: 32px; }
.wordmark b { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--rule); margin-top: 4rem; padding: 2rem 0 3rem;
  color: var(--ink-soft); font-size: 0.9rem;
}
.site-footer a { color: var(--ink-soft); }

main { padding-top: 2rem; }
section[id] { scroll-margin-top: 1rem; }

/* Hero */
.hero { padding: 2.5rem 0 1rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.75rem; letter-spacing: 0.02em; }
.eyebrow b { font-weight: 800; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 38rem; margin: 0; }

.app-shelf { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.app-shelf li { margin: 0; }
.app-shelf a { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; width: 84px; text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 600; text-align: center; line-height: 1.25; }
.app-shelf img { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transition: transform 0.2s ease; }
.app-shelf a:hover img { transform: translateY(-3px) rotate(-3deg); }

/* App sections */
.app { margin-top: 4.5rem; }
.app-title { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1rem; font-size: 2rem; }
.app-icon { width: 72px; height: 72px; flex: none; border-radius: 22.5%; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.app-icons { display: flex; gap: 0.6rem; }
.app-summary { font-size: 1.15rem; max-width: 40rem; margin: 0 0 0.75rem; }
.badge {
  display: inline-block; vertical-align: middle; margin-left: 0.5rem; padding: 0.15rem 0.6rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 700;
}
.app-features { columns: 2 18rem; column-gap: 2.5rem; padding-left: 1.2rem; margin: 0.75rem 0 1rem; }
.app-features li { break-inside: avoid; margin: 0 0 0.35rem; }
.app-price { font-weight: 600; margin: 0 0 1rem; }
.note { color: var(--ink-soft); font-size: 0.95rem; }

/* Two ways to buy myCal */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.edition { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.edition h3 { margin: 0; display: flex; align-items: center; gap: 0.75rem; }
.edition h3 img { width: 44px; height: 44px; border-radius: 22.5%; }
.edition p { margin: 0; color: var(--ink-soft); }
.edition .store { margin-top: auto; align-self: flex-start; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.store {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  color: inherit; text-decoration: none; min-width: 11.5rem;
}
a.store:hover { border-color: var(--accent); }
.store > span { display: flex; flex-direction: column; line-height: 1.3; }
.store-icon { width: 1.7rem; height: 1.7rem; flex: none; }
.store small { color: var(--ink-soft); font-size: 0.78rem; }
.store strong { font-size: 1.05rem; }

/* Screenshot galleries: scroll sideways, with a scrollbar that always shows */
.gallery {
  list-style: none; margin: 0.5rem 0 0; padding: 0.5rem 0 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.gallery li { margin: 0; scroll-snap-align: start; }
.gallery li.wide { grid-column: span 2; }
.gallery h3 { margin: 0.9rem 0 0.2rem; font-size: 1rem; }
.gallery p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
@supports not selector(::-webkit-scrollbar) {
  .gallery { scrollbar-width: thin; scrollbar-color: var(--accent) var(--rule); }
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: var(--rule); border-radius: 4px; }
.gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.phone {
  border: 7px solid #1d1517; border-radius: 30px; overflow: hidden; background: #1d1517;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
.phone-cropped { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone-cropped img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tablet { border-radius: 20px; }
.tablet img { border-radius: 13px; }

/* Support and contact */
.support { margin-top: 5rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
.quotes blockquote {
  margin: 0; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 1rem 1.25rem;
}
.quotes p { margin: 0 0 0.4rem; font-size: 1.1rem; }
.quotes cite { color: var(--ink-soft); font-style: normal; font-size: 0.9rem; }

.cta { background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 1.5rem 1.5rem 1.25rem; margin-top: 3rem; }
.cta h2 { margin-top: 0; }
.cta p { margin: 0.5rem 0 0; }
.cta a { color: var(--accent-ink); font-weight: 700; }

@media (max-width: 34rem) {
  .app-title { font-size: 1.6rem; gap: 1rem; }
  .app-icon { width: 60px; height: 60px; }
  .gallery { grid-auto-columns: 170px; }
}
