/* Hallmark · theme: custom · brand: Stay from Android artwork · idea: "Try a Pomodoro in Berry’s study" · vibe: quiet clay, moss, soft daylight · hero: playable clay study first · nav: wordmark and two links · footer: Android release · v2.0.0 */
/* Critique: The app’s armchair supplies the memorable image. Give it the larger column and put the only store action beside the headline. */
/* Review: in-thread. Fixed the study crop after checking the first deployment. */
:root {
  --color-study: #233a32;
  --color-study-deep: #192c26;
  --color-paper: #eee3ca;
  --color-ink: #253b32;
  --color-light: #fff0d1;
  --color-muted: #d4dfc8;
  --color-accent: #f1cc82;
  --color-accent-ink: var(--color-study-deep);
  --color-transparent: transparent;
  --color-accent-hover: #ffe1a1;
  --color-rule: #adba9a;
  --color-rule-dark: #9c9e7f;
  --color-wall: #dbe1ce;
  --color-timer: #e6e5cc;
  --color-art: #9baa98;
  --font-title: Fraunces, Georgia, serif;
  --font-body: system-ui, sans-serif;
  --shell: 76rem;
  --edge: clamp(1.25rem, 4.5vw, 4.5rem);
  --ease: cubic-bezier(.22, .65, .25, 1);
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; scrollbar-color: var(--color-rule) var(--color-study-deep); }
body { margin: 0; background: var(--color-study); color: var(--color-light); font: 400 1rem/1.55 var(--font-body); }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
a { color: inherit; text-underline-offset: .28em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 540; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 2 * var(--edge)), var(--shell)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; inset: .75rem auto auto var(--edge); padding: .7rem 1rem; background: var(--color-light); color: var(--color-study); transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { background: var(--color-wall); color: var(--color-study-deep); border-bottom: 1px solid color-mix(in srgb, var(--color-rule) 36%, var(--color-transparent)); }
.header-inner { min-height: 4.85rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; font: 610 1.9rem/1 var(--font-title); text-decoration: none; }
.brand img { width: 2.15rem; height: 2.15rem; border-radius: .55rem; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2.65rem); align-items: center; }
nav a { text-decoration: none; font-size: .92rem; display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover { text-decoration: underline; }
.hero { background: var(--color-wall); color: var(--color-study-deep); min-height: calc(100svh - 4.85rem); display: grid; align-items: center; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5.5vw, 6.3rem); padding-block: clamp(1.7rem, 4.5vh, 3.5rem); }
.hero-copy { grid-column: 2; grid-row: 1; position: relative; }
.hero h1 { font-size: clamp(3.35rem, 6.3vw, 6.35rem); line-height: .96; letter-spacing: -.048em; }
.hero-copy p { margin: 1.35rem 0 1.85rem; color: var(--color-ink); max-width: 29ch; font-size: clamp(1rem, 1.55vw, 1.25rem); }
.store { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; padding: .72rem 1.2rem; border: 1px solid var(--color-accent); border-radius: .35rem; background: var(--color-accent); color: var(--color-accent-ink); font-weight: 650; text-decoration: none; transition: transform 150ms var(--ease); }
.store:focus-visible { outline-color: var(--color-light); }
.store:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.store:active { transform: translateY(1px); }
.store[disabled] { cursor: default; background: var(--color-accent); transform: none; }
.hero-visual { grid-column: 1; grid-row: 1; width: min(100%, 34rem); justify-self: center; }
.study-art { display: grid; position: relative; isolation: isolate; width: 100%; aspect-ratio: 768 / 945; max-height: 71svh; background: var(--color-art); overflow: clip; border-radius: .7rem .7rem .2rem .2rem; }
.study-art picture { position: absolute; inset: 0; }
.study-art img, .study-art canvas { width: 100%; height: 100%; object-fit: cover; object-position: center 76%; }
.study-art canvas { pointer-events: none; position: absolute; inset: 0; }
.timer { position: absolute; z-index: 1; inset: 6% auto auto 6%; color: var(--color-study-deep); }
#timer-time { display: block; font: 590 clamp(2.4rem, 6vw, 5rem)/1 var(--font-title); font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
#timer-actions { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
#timer-actions button { min-height: 44px; border: 1px solid var(--color-study-deep); border-radius: .35rem; padding: .3rem .62rem; cursor: pointer; background: var(--color-timer); color: var(--color-study-deep); font-size: .86rem; font-weight: 650; }
#timer-actions button:hover { background: var(--color-accent-hover); }
.hero .store:focus-visible { outline-color: var(--color-study-deep); }
.demo { display: flex; justify-content: space-between; align-items: center; gap: .45rem 1.25rem; flex-wrap: wrap; padding-top: .65rem; }
.demo-controls { display: flex; gap: .3rem; }
.demo button { min-height: 44px; border: 1px solid var(--color-rule); border-radius: .35rem; padding: .3rem .65rem; cursor: pointer; white-space: nowrap; background: var(--color-transparent); color: var(--color-study-deep); font-size: .86rem; }
.demo button:hover { background: var(--color-timer); }
.demo button[aria-pressed="true"] { border-color: var(--color-study); color: var(--color-study-deep); box-shadow: inset 0 -2px var(--color-study); }
.demo-note { color: var(--color-ink); font-size: .88rem; }
.house { background: var(--color-paper); color: var(--color-ink); padding-block: clamp(3.2rem, 8vw, 7rem); }
.house h2, .download h2 { font-size: clamp(2.5rem, 5vw, 5.05rem); line-height: 1; letter-spacing: -.054em; }
.house-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 1.3rem 3rem; align-items: end; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.house-intro p { max-width: 34ch; padding-bottom: .12rem; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem .42rem; }
.room figcaption { border-top: 1px solid var(--color-rule-dark); margin: 1rem .7rem 0 0; padding: .75rem .5rem 0 0; }
.room img { width: 100%; height: auto; border-radius: .25rem; }
.room h3 { font-size: clamp(1.65rem, 2.7vw, 2.65rem); line-height: 1.06; letter-spacing: -.045em; }
.room p { padding-top: .45rem; max-width: 29ch; }
.download { background: var(--color-study-deep); padding-block: clamp(3.25rem, 7vw, 6rem); }
.download-inner { display: flex; gap: 2rem 4rem; justify-content: space-between; align-items: center; }
.download p { margin-top: .85rem; color: var(--color-muted); max-width: 39ch; }
.download .store { flex: none; align-self: center; }
.footer { background: var(--color-study-deep); color: var(--color-light); }
.footer-inner { border-top: 1px solid color-mix(in srgb, var(--color-rule) 36%, var(--color-transparent)); min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 1.5rem; }
.footer a:not(.brand) { padding-block: .65rem; }
@media (max-width: 52rem) {
  .hero-inner { gap: 1.65rem; }
  .demo { gap: .35rem; }
  .study-art { max-height: none; }
}
@media (max-width: 43rem) {
  .header-inner { min-height: 4rem; }
  .hero, .hero-inner { min-height: 0; }
  .hero-inner, .house-intro { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 2rem 2.65rem; }
  .hero h1 { font-size: clamp(3rem, 10.8vw, 4.35rem); max-width: 12ch; }
  .hero-copy p { margin-block: .85rem 1.05rem; }
  .hero-copy, .hero-visual { grid-row: auto; grid-column: 1; }
  .hero-visual { width: 100%; }
  #timer-time { font-size: clamp(2rem, 11vw, 3.9rem); }
  .study-art { max-height: min(30rem, 100vw); }
  .rooms { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .room img { aspect-ratio: 1.25; object-fit: cover; object-position: center 64%; }
  .room figcaption { margin-top: .65rem; }
  .download-inner { display: grid; justify-content: start; }
  .download .store { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


