/* Cafe Opening. Change the colors here. */
:root {
  --bg: #f8efe2;
  --paper: #fffaf2;
  --text: #3a2418;
  --muted: #7a5c4a;
  --line: #e6d3bb;
  --accent: #c2501f;
  --accent-dark: #9e3c12;
  --mug: #c2501f;
  --band: #f1b24a;
  --coffee: #5b3420;
  --steam: #d9bfa3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 10%, rgb(241 178 74 / 0.18), transparent 40%),
    radial-gradient(circle at 85% 90%, rgb(194 80 31 / 0.1), transparent 45%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { flex: 1; width: min(760px, 100% - 32px); margin: 0 auto; padding: 48px 0 24px; }

.masthead { text-align: center; }
.cup { width: 150px; height: auto; margin: 0 auto 8px; display: block; }
.steam { stroke: var(--steam); }
.steam path { animation: steam 3.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 0.6s; }
.steam path:nth-child(3) { animation-delay: 1.2s; }
.saucer { fill: var(--line); }
.mug { fill: var(--mug); }
.handle { stroke: var(--mug); }
.band { fill: var(--band); }
.coffee { fill: var(--coffee); }

.est { margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

h1 {
  margin: 0 0 10px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.opening {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 18px;
  border: 2px dashed var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.lead { max-width: 560px; margin: 0 auto 36px; text-align: center; color: var(--muted); font-size: 1.1rem; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel, .signup-box {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 2px 0 var(--line);
}
h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: 1.25rem; }
h2 svg { width: 20px; height: 20px; color: var(--accent); }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

address { font-style: normal; line-height: 1.8; }

.signup-box p { margin: 0 0 14px; color: var(--muted); }
.signup { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; height: 50px;
  padding: 0 16px;
  border: 1px solid #d8c0a3;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.signup input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.signup button {
  height: 50px; padding: 0 22px;
  border: 0; border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700;
  cursor: pointer;
}
.signup button:hover { background: var(--accent-dark); }
.signup-box .note { min-height: 1.6em; margin: 10px 0 0; color: var(--accent-dark); font-weight: 600; }

.foot { padding: 24px 16px 32px; text-align: center; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 600px) {
  .info { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
}

@keyframes steam {
  0%, 100% { opacity: 0.3; transform: translateY(4px); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .steam path { animation: none; }
}
