@font-face {
  font-family: Pixel;
  src: url("./pixel.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #eee8d8;
  --panel: #fff9e9;
  --ink: #3b382e;
  --muted: #6c6759;
  --line: #c5bcaa;
  --accent: #456344;
  --button-text: #fffbed;
  --soft: #e0dfcc;
  --shadow: #403a30;
  --orange: #aa593b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button {
  border-radius: 0;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.page {
  max-width: 1376px;
  padding: 0 64px;
  margin: auto;
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: Pixel, monospace;
  font-size: 15px;
  line-height: 1.8;
  white-space: nowrap;
}
.cup {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 20px;
  background: var(--accent);
  box-shadow: 0 4px 0 -1px var(--accent);
  margin-right: 5px;
}
.cup:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 12px;
  right: -8px;
  top: 2px;
  border: 4px solid var(--accent);
  border-left: 0;
}
.cup:after {
  content: "";
  position: absolute;
  top: -9px;
  left: 5px;
  width: 3px;
  height: 5px;
  background: var(--accent);
  box-shadow: 8px -3px var(--accent);
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
}
.nav-seat {
  font-weight: bold;
}
.nav-seat span {
  padding-left: 12px;
}
.theme {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 12px;
}
.theme:hover {
  background: var(--soft);
}
.intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 60px;
  padding: 62px 0 50px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.1px;
  margin: 0 0 25px;
  color: var(--muted);
}
h1 {
  font-family: Pixel, monospace;
  font-weight: 400;
  font-size: clamp(25px, 3.1vw, 44px);
  line-height: 1.65;
  letter-spacing: -2px;
  margin: 0;
}
h1 span {
  color: var(--accent);
}
.intro-copy {
  max-width: 340px;
  justify-self: end;
  padding-bottom: 9px;
}
.intro-copy p {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: bold;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.button:hover {
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}
.button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}
.primary {
  background: var(--accent);
  color: var(--button-text);
}
.cafe-scene {
  position: relative;
  min-height: 600px;
  border: 3px solid var(--ink);
  background: #61472f;
  isolation: isolate;
  scroll-margin-top: 24px;
}
.scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
  z-index: -1;
}
.desk-window {
  width: 356px;
  float: right;
  margin: 30px 30px 100px 30px;
  background: var(--panel);
  border: 2px solid #3b382e;
  box-shadow: 6px 6px 0 #3b382e80;
}
.window-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 2px solid #3b382e;
  background: var(--soft);
  font-family: Pixel, monospace;
  font-size: 9px;
  line-height: 1.8;
}
.desk-content {
  padding: 24px 22px 10px;
}
.modes {
  display: flex;
  gap: 4px;
  justify-content: space-between;
}
.modes button {
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 9px;
}
.modes button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--panel);
}
.modes button:hover {
  outline: 1px solid var(--line);
}
.timer-caption {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin: 24px 0 13px;
}
.timer {
  font-family: Pixel, monospace;
  font-size: 43px;
  line-height: 1.6;
  letter-spacing: -3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.timer-actions {
  display: flex;
  gap: 12px;
}
.timer-actions .button {
  flex: 1;
  padding: 11px 12px;
  gap: 16px;
  font-size: 13px;
}
.reset {
  flex: 0 0 43px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 26px;
  line-height: 1;
}
.reset:hover {
  background: var(--soft);
}
.task {
  margin-top: 27px;
}
.task label {
  font-size: 12px;
  font-weight: bold;
}
.task-input {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-top: 5px;
  gap: 8px;
}
.task input {
  color: var(--ink);
  background: transparent;
  border: 0;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  padding: 8px 0;
}
.task input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.task input.done {
  text-decoration: line-through;
  color: var(--muted);
}
#task-done {
  border: 0;
  background: transparent;
  width: 28px;
  color: var(--accent);
  font-size: 20px;
}
#task-done[aria-pressed="true"] {
  background: var(--accent);
  color: var(--button-text);
}
.session-count {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 18px 0 0;
}
.notice {
  font-size: 11px;
  text-align: center;
  margin: 3px 0 0;
  min-height: 18px;
  color: var(--accent);
}
.sound-panel {
  position: absolute;
  left: 26px;
  bottom: 26px;
  max-width: calc(100% - 52px);
  padding: 13px 16px;
  background: var(--panel);
  border: 2px solid #3b382e;
  box-shadow: 4px 4px 0 #3b382e80;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.sound-label {
  font-size: 11px;
  font-weight: bold;
}
.sounds {
  display: flex;
  gap: 4px;
}
.sounds button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 11px;
}
.sounds button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}
.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.volume input {
  width: 65px;
  accent-color: var(--accent);
}
#sound-status {
  flex-basis: 100%;
  font-size: 11px;
  margin: 0;
}
#sound-status:empty {
  display: none;
}
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  padding: 80px 10px 74px;
}
.little-spark {
  font-size: 30px;
  color: var(--orange);
}
h2 {
  font-size: 29px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  margin: 15px 0;
}
.about-title p {
  max-width: 350px;
  font-size: 15px;
  color: var(--muted);
}
.cafe-notes {
  margin: 6px 0 0;
}
.cafe-notes div {
  padding: 12px 0 15px;
}
.cafe-notes dt {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}
.cafe-notes dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 350px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 12px;
  color: var(--muted);
}
.footer-brand {
  font-size: 10px;
  color: var(--ink);
  gap: 12px;
}
.footer-brand .cup {
  transform: scale(0.7);
}
footer p {
  margin: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 10px;
  background: var(--panel);
  z-index: 2;
}
.skip:focus {
  top: 10px;
}
.no-script {
  padding: 20px;
  text-align: center;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #272d28;
  --panel: #343c32;
  --ink: #efe8d4;
  --muted: #c5c7b6;
  --line: #65705e;
  --accent: #afc99c;
  --button-text: #243020;
  --soft: #414b3a;
  --shadow: #171e19;
  --orange: #ecb284;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #272d28;
    --panel: #343c32;
    --ink: #efe8d4;
    --muted: #c5c7b6;
    --line: #65705e;
    --accent: #afc99c;
    --button-text: #243020;
    --soft: #414b3a;
    --shadow: #171e19;
    --orange: #ecb284;
  }
}
@media (min-width: 1500px) {
  .intro {
    padding-top: 72px;
  }
}
@media (max-width: 1050px) {
  .page {
    padding: 0 32px;
  }
  .intro {
    gap: 30px;
  }
  h1 {
    font-size: 32px;
  }
  .intro-copy p {
    font-size: 16px;
  }
  .about {
    gap: 55px;
  }
  .cafe-scene {
    min-height: 600px;
  }
  .sound-panel {
    gap: 10px;
  }
}
@media (max-width: 767px) {
  .page {
    padding: 0 20px;
  }
  .header {
    height: 82px;
  }
  .brand {
    font-size: 11px;
    gap: 14px;
  }
  nav {
    gap: 16px;
  }
  nav > a:first-child {
    display: none;
  }
  .nav-seat {
    font-size: 12px;
  }
  .nav-seat span {
    padding-left: 3px;
  }
  .theme {
    font-size: 10px;
    padding: 5px 6px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0 32px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(25px, 5.9vw, 40px);
    letter-spacing: -1px;
    line-height: 1.7;
  }
  .intro-copy {
    max-width: none;
    justify-self: start;
    padding: 0;
  }
  .intro-copy p {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .intro-copy p br {
    display: none;
  }
  .button {
    font-size: 13px;
    padding: 12px 20px;
  }
  .cafe-scene {
    min-height: 780px;
    padding-top: 225px;
  }
  .scene-image {
    object-position: 38% center;
  }
  .desk-window {
    float: none;
    width: calc(100% - 32px);
    max-width: 380px;
    margin: 0 auto 100px;
  }
  .desk-content {
    padding: 20px 20px 10px;
  }
  .timer {
    font-size: 42px;
  }
  .sound-panel {
    left: 14px;
    right: 14px;
    bottom: 16px;
    max-width: none;
    justify-content: center;
    padding: 12px 8px;
    gap: 8px 10px;
  }
  .sound-label {
    flex-basis: 100%;
    text-align: center;
  }
  .volume input {
    width: 48px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 45px 3px 38px;
  }
  h2 {
    font-size: 25px;
  }
  .about-title p {
    max-width: 440px;
  }
  .cafe-notes dd {
    max-width: 440px;
  }
  footer {
    flex-wrap: wrap;
    gap: 20px 12px;
    padding: 25px 0;
  }
  footer p {
    order: 3;
    width: 100%;
    font-size: 11px;
  }
  footer > a:last-child {
    margin-left: auto;
  }
}
@media (max-width: 360px) {
  .page {
    padding: 0 12px;
  }
  .brand {
    font-size: 10px;
  }
  nav {
    gap: 9px;
  }
  .theme {
    font-size: 9px;
  }
  .modes button {
    font-size: 11px;
    padding: 7px;
  }
  .timer {
    font-size: 36px;
  }
  .desk-content {
    padding: 18px 14px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
