/* The home page: app landing and Debbie's corner. Builds on site.css. */

.wrap.wide { max-width: 1080px; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }

header.site nav { align-items: center; }
header.site nav a { text-decoration: none; }
header.site nav a:hover { text-decoration: underline; }
header.site nav a.pill { background: var(--plum); color: var(--paper); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 560px) {
  header.site { flex-wrap: wrap; }
  header.site nav { margin-left: 0; width: 100%; gap: 14px; }
}

/* Hero */
.home .hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin: 8px 0 12px; }
.home .hero h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.02em; margin: 10px 0 14px; }
.home .hero .lede { max-width: 30em; }
.hero-art { position: relative; justify-self: center; width: min(320px, 80vw); }
.phone { margin: 0; border: 10px solid var(--ink); border-radius: 44px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 60px -24px rgba(46, 26, 51, .45); }
.phone img { display: block; width: 100%; height: auto; }
.hero-frog { position: absolute; width: 150px; height: 150px; right: -70px; bottom: 60px; border-radius: 50%; transform: rotate(-8deg); box-shadow: 0 10px 30px -10px rgba(46, 26, 51, .5); border: 4px solid var(--paper); }
@media (max-width: 820px) {
  .home .hero { grid-template-columns: 1fr; }
  .hero-art { width: min(280px, 72vw); margin-top: 8px; }
  .hero-frog { width: 110px; height: 110px; right: -40px; }
}

.btn.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; line-height: 1.15; }
.btn.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn.store small { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
.btn.store span { font-size: 19px; }
.btn.soon { background: transparent; color: var(--muted); border: 2px dashed var(--hairline); cursor: default; }

/* The four things a day */
.four { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hairline); margin: 40px 0; }
.four div { padding: 18px 16px 18px 0; display: grid; gap: 2px; align-content: start; }
.four div + div { padding-left: 16px; border-left: 1px solid var(--hairline); }
.four svg { width: 28px; height: 28px; stroke: var(--plum); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.four b { font-size: 19px; }
.four span { color: var(--muted); font-size: 16px; }
@media (max-width: 720px) {
  .four { grid-template-columns: 1fr 1fr; }
  .four div:nth-child(3) { padding-left: 0; border-left: 0; }
  .four div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* Screens */
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 6px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 20px; margin-top: 12px; }
.strip:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { display: block; width: 100%; height: auto; border: 6px solid var(--ink); border-radius: 28px; background: var(--paper); }
.strip figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
.strip figcaption b { color: var(--ink); display: block; font-size: 16px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 8px; } }
.panel.quiet h2 { margin-top: 4px; font-size: 21px; }
.panel.quiet { margin-top: 36px; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 3px; background: var(--plum); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1.5px var(--plum); }

/* Full-width bands */
.band { margin: 56px 0; padding: 48px 0; }
.band.debbie { background: var(--tint); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band.debbie h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.band.debbie .links { font-weight: 700; }
.frog-story { text-align: center; max-width: 360px; justify-self: center; }
.portrait { position: relative; margin: 0 auto 8px; width: min(320px, 100%); }
.portrait .debbie { display: block; width: 100%; height: auto; border-radius: 12px; border: 6px solid var(--paper); box-shadow: 0 18px 40px -20px rgba(46, 26, 51, .5); transform: rotate(1.5deg); }
.portrait .badge { position: absolute; width: 104px; height: 104px; left: -34px; bottom: -22px; border-radius: 50%; border: 4px solid var(--paper); transform: rotate(-8deg); }
.frog-story p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--hairline); border-top: 4px solid var(--plum); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin-top: 10px; font-size: 21px; }
.card p { margin: 6px 0; }
.card .mark { width: 34px; height: 34px; stroke: var(--plum); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .actions { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.card .btn { padding: 10px 16px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }
ol.latest { list-style: none; padding: 0; margin: 12px 0 4px; border-top: 1px solid var(--hairline); }
ol.latest li { border-bottom: 1px solid var(--hairline); }
ol.latest a { display: flex; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.3; }
ol.latest a:hover span { text-decoration: underline; }
ol.latest img { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; flex: none; background: var(--tint); }
ol.latest img.square { width: 45px; }
ol.latest small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }

/* News band */
.band.news { background: var(--plum); color: var(--paper); }
.band.news .kicker { color: var(--paper); opacity: .8; }
.band.news h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.band.news a { color: var(--paper); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; gap: 8px; } }
.band.news label.field { display: block; font-weight: 700; margin-bottom: 6px; }
.band.news .row { display: flex; gap: 10px; flex-wrap: wrap; }
.band.news input[type=email] { flex: 1 1 220px; font: inherit; color: var(--ink); background: var(--paper); border: 0; border-radius: 6px; padding: 12px 14px; }
.band.news input:focus-visible, .band.news button:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.band.news button.btn { background: var(--ink); color: var(--paper); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.band.news button.btn[disabled] { opacity: .6; cursor: default; }
.band.news .consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 8px; cursor: pointer; font-size: 16px; }
.band.news .consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.band.news .small { color: var(--paper); opacity: .85; }
.band.news #status { font-weight: 700; margin: 8px 0 0; }
.band.news #status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  .band.news { color: #1C1220; }
  .band.news a, .band.news .small, .band.news .kicker { color: #1C1220; }
  .band.news button.btn { background: #1C1220; color: #F5EEE6; }
  .band.news input[type=email] { background: #FFF6EE; color: #1C1220; }
}

/* Follow */
.follow h2 { font-size: 24px; }
.follow ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .follow ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .follow ul { grid-template-columns: 1fr; } }
.follow a { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--hairline); border-radius: 6px; text-decoration: none; font-weight: 700; color: var(--ink); }
.follow a:hover { border-color: var(--plum); }
.follow svg { grid-row: span 2; width: 28px; height: 28px; stroke: var(--plum); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.follow small { color: var(--muted); font-weight: 400; font-size: 14px; }

.home .wrap { padding-bottom: 0; }
.home footer { padding-bottom: 48px; }
.follow li { display: flex; }
.follow a { flex: 1; }

.gift-panel { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border-left: 6px solid var(--plum); }
.gift-panel h2 { margin-top: 6px; }
.gift-panel .actions { margin: 0; }
@media (max-width: 760px) { .gift-panel { grid-template-columns: 1fr; } }
#listen { margin-top: 40px; }

.gift-panel .actions { display: flex; flex-direction: column; gap: 10px; }
.gift-panel .btn { text-align: center; }
