/* 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: 72rem;
  --color-floor-a: #e8d9b5;
  --color-floor-b: #9fb0b9;
  --color-wood-a: #8a5a3c;
  --color-wood-b: #7a4e33;
  --color-runner-a: #c98f8a;
  --color-runner-b: #b57b77;
  --color-grass-a: #8fa463;
  --color-grass-b: #7f955a;
  --color-carpet-a: #8e8a85;
  --color-carpet-b: #85817c;
  --color-tile-a: #c9c6bd;
  --color-tile-b: #b4b1a8;
  --color-door: color-mix(in srgb, var(--color-light) 88%, var(--color-transparent));
  --color-phone: #2a211d;
  --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: clip; height: 100%; 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; }
body { height: 100dvh; background: var(--color-wall); color: var(--color-study-deep); position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.floor { position: absolute; inset: auto 0 0 0; height: 30dvh; border-top: .6rem solid var(--color-study); background: repeating-linear-gradient(90deg, var(--color-wood-a) 0 5.5rem, var(--color-wood-b) 5.5rem 5.7rem); }
[data-room="hallway"]:not([data-kit="work"]) .floor { background: repeating-linear-gradient(0deg, var(--color-runner-a) 0 1.6rem, var(--color-runner-b) 1.6rem 3.2rem); }
[data-room="kitchen"]:not([data-kit="work"]) .floor { background: conic-gradient(var(--color-floor-a) 25%, var(--color-floor-b) 0 50%, var(--color-floor-a) 0 75%, var(--color-floor-b) 0) 0 0 / 7rem 7rem; }
[data-kit="work"] .floor { background: repeating-linear-gradient(90deg, var(--color-tile-a) 0 6rem, var(--color-tile-b) 6rem 6.15rem); }
[data-kit="work"][data-room="study"] .floor { background: repeating-linear-gradient(0deg, var(--color-carpet-a) 0 .25rem, var(--color-carpet-b) .25rem .5rem); }
[data-room="garden"]:not([data-kit="work"]) .floor { background: repeating-linear-gradient(100deg, var(--color-grass-a) 0 .9rem, var(--color-grass-b) .9rem 1.3rem); }
.header { position: absolute; z-index: 2; inset: 1rem auto auto var(--edge); }
.brand { display: inline-flex; gap: .7rem; align-items: center; font: 610 1.7rem/1 var(--font-title); text-decoration: none; }
.brand img { width: 2.15rem; height: 2.15rem; border-radius: .55rem; }
.hero { position: relative; z-index: 1; height: 100%; width: min(calc(100% - 2 * var(--edge)), var(--shell)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding-block: 4.5rem 1.2rem; }
/* The phone and its two buttons stay one group, centred; the phone never takes the buttons' row. */
.stage { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.try { min-height: 44px; }
.phone { flex: none; height: min(calc(100% - 44px - 1rem), 52rem); container-type: inline-size; aspect-ratio: 9 / 17.6; max-width: 100%; display: flex; flex-direction: column; background: var(--color-timer); border: .6rem solid var(--color-phone); border-radius: 2.4rem; overflow: clip; position: relative; box-shadow: 0 1.2rem 2.5rem -1rem color-mix(in srgb, var(--color-phone) 55%, var(--color-transparent)); }
.phone-notch { position: absolute; z-index: 2; top: .55rem; left: 50%; width: 26%; height: 1.15rem; translate: -50% 0; border-radius: 1rem; background: var(--color-phone); }
.panel { flex: 1 1 0; min-height: auto; padding-bottom: .6rem; display: grid; place-content: center; justify-items: center; gap: .35rem; padding-top: 2.3rem; text-align: center; }
.house { flex: 0 1 auto; min-height: 0; width: 100%; aspect-ratio: 1024 / 1240; position: relative; overflow: clip; background: var(--color-art); touch-action: pan-y; user-select: none; }
.world { position: absolute; inset: auto auto 0 0; width: 400%; aspect-ratio: 4096 / 1240; display: flex; transition: transform 700ms var(--ease); }
.room { width: 25%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.berry, .shadow, .armrest { position: absolute; z-index: 1; pointer-events: none; }
.berry canvas, .shadow canvas { display: block; width: 100%; height: 100%; }
.house { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: var(--color-transparent); }
.berry { z-index: 2; border: 0; padding: 0; background-color: var(--color-transparent); cursor: pointer; pointer-events: auto; border-radius: 40%; }
.berry.front { z-index: 4; }
.armrest { z-index: 3; height: auto; }
.mirror { transform: scaleX(-1); }
.door { position: absolute; z-index: 5; bottom: .7rem; min-height: 44px; padding: .3rem clamp(.4rem, 4cqi, 1.05rem); max-width: calc(50% - .8rem); line-height: 1.05; text-align: center; border: 2px solid var(--color-study-deep); border-radius: 2rem; background: var(--color-accent); color: var(--color-study-deep); font: 600 clamp(.7rem, 5.2cqi, .98rem) var(--font-title); cursor: pointer; box-shadow: 0 .25rem 0 var(--color-study-deep); transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.door:hover { background: var(--color-accent-hover); }
.door:active { transform: translateY(.2rem); box-shadow: 0 .05rem 0 var(--color-study-deep); }
.door-back { left: .7rem; }
.door-next { right: .7rem; }
.room-panel h2 { font-size: clamp(1.4rem, 9cqi, 2.4rem); line-height: 1.1; letter-spacing: -.03em; color: var(--color-study); }
.room-panel p { max-width: 24ch; color: var(--color-ink); padding-inline: 1rem; line-height: 1.35; }
#room-timer { font-size: .9rem; font-variant-numeric: tabular-nums; }
#timer-time { font: 590 clamp(2.2rem, 17cqi, 4.2rem)/1 var(--font-title); font-variant-numeric: tabular-nums; letter-spacing: -.05em; color: var(--color-study); }
#timer-mode { border: 0; background: none; cursor: pointer; font: 500 1.05rem var(--font-title); color: var(--color-ink); text-decoration: underline dotted; text-underline-offset: .3em; min-height: 44px; padding: 0 .8rem; }
#timer-actions { display: flex; gap: .4rem; }
#timer-actions button { min-height: 44px; border: 1px solid var(--color-study-deep); border-radius: 2rem; padding: .3rem 1.3rem; cursor: pointer; background: var(--color-accent); color: var(--color-study-deep); font: 600 1rem var(--font-title); }
#timer-actions button:hover { background: var(--color-accent-hover); }
.hero-copy { position: relative; translate: 0 -5dvh; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 6.2rem); line-height: .96; letter-spacing: -.048em; }
.hero-copy p { margin: 1.35rem 0 1.85rem; color: var(--color-ink); max-width: 30ch; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.try { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.try button { min-height: 44px; padding: .45rem 1.15rem; border: 2px solid var(--color-study-deep); border-radius: 2rem; background: var(--color-accent); color: var(--color-study-deep); font: 600 1.02rem var(--font-title); cursor: pointer; box-shadow: 0 .25rem 0 var(--color-study-deep); transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.try button:hover { background: var(--color-accent-hover); }
.try button:active { transform: translateY(.2rem); box-shadow: 0 .05rem 0 var(--color-study-deep); }
.try button:disabled { cursor: progress; opacity: .7; }
.hero-copy .store-status { max-width: none; display: inline-block; margin: 0; padding: .5rem .95rem; background: var(--color-timer); border: 1px solid var(--color-study-deep); border-radius: 2rem; color: var(--color-study-deep); font-size: .95rem; }
.store { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; padding: .72rem 1.2rem; border-radius: .35rem; background: var(--color-study-deep); color: var(--color-light); font-weight: 650; text-decoration: none; transition: transform 150ms var(--ease); }
.store:hover { transform: translateY(-2px); }
.store:active { transform: translateY(1px); }
@media (max-width: 43rem), (max-aspect-ratio: 4/5) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: .8rem; padding-block: 3.4rem .8rem; align-items: start; }
  .hero-copy { grid-row: 1; text-align: center; translate: none; }
  .stage { grid-row: 2; gap: .7rem; justify-content: flex-start; }
  .phone { height: min(calc(100% - 44px - .7rem), 52rem); }
  .door { padding-block: .15rem; bottom: .5rem; }
  .door-back { left: .5rem; }
  .door-next { right: .5rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-copy p { margin: .45rem auto .6rem; font-size: 1rem; line-height: 1.4; }
  .try { gap: .4rem; flex-wrap: nowrap; }
  .try button { padding: .2rem .8rem; font-size: .88rem; white-space: nowrap; }
  .hero-copy .store-status { margin: 0; padding: .3rem .8rem; font-size: .85rem; }
  .header { inset: .7rem auto auto 50%; translate: -50% 0; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .world { transition: none; }
}
