/* ==========================================================================
   Yoly Garden Reservoir Reminder - styles.css
   Tokens from Brand Assets/Yoly Design System/brand.css (v2, Aug 3 2026).
   Self-hosted fonts only. No pure black anywhere.
   Note: the design system ships Playfair Display up to weight 600, so the
   H1 uses 600 (the handoff's 700 would be browser-synthesized fake bold).
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --wreath: #31441E;
  --meadow: #5C6D4E;
  --drizzle: #EAE1DA;
  --floret: #D8B4B2;
  --melody: #B58974;
  --petrichor: #693B1B;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--wreath);
  background: var(--drizzle);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 32px 24px 40px;
  text-align: center;
}

.wordmark {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 auto 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--petrichor);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  color: var(--wreath);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  color: var(--wreath);
  margin-bottom: 10px;
}

.body-copy {
  font-size: 17px;
  color: var(--wreath);
  margin-bottom: 28px;
}

/* ---- Date card ---- */
.date-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(49, 68, 30, 0.18);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.date-card .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  display: block;
}

.date-card-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--petrichor);
  margin-bottom: 4px;
}

.date-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--wreath);
}

/* ---- Returning-visitor note ---- */
.returning-note {
  font-size: 14px;
  color: var(--petrichor);
  margin-bottom: 16px;
}

/* ---- Primary button ---- */
.btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--wreath);
  background: var(--floret);
  border: none;
  border-radius: 4px;
  width: 100%;
  min-height: 52px;
  min-width: 44px;
  padding: 14px 20px;
  cursor: pointer;
  transition: filter 120ms ease;
}
.btn-primary:hover { filter: brightness(0.97); }
.btn-primary:focus-visible {
  outline: 2px solid var(--wreath);
  outline-offset: 2px;
}
.btn-primary:disabled {
  cursor: default;
  background: #E7CFCD; /* lightened Floret: readable, visibly inactive */
  color: rgba(49, 68, 30, 0.75);
  filter: none;
}

/* Secondary (Try again) uses the same primary treatment: one action at a time */

.support-copy {
  font-size: 14px;
  color: var(--petrichor);
  margin-top: 16px;
}

.fine-print {
  font-size: 14px;
  color: var(--petrichor);
  margin-top: 8px;
}

/* ---- Status / helper region ---- */
.status-region { margin-top: 24px; }

.state-block { margin-top: 8px; }

.state-block p {
  font-size: 17px;
  color: var(--wreath);
}

/* ---- Utility ---- */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

noscript p {
  font-size: 17px;
  color: var(--wreath);
  padding: 16px 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Small iPhones (SE): keep the button on the first screen */
@media (max-height: 700px) {
  main { padding-top: 20px; }
  .wordmark { margin-bottom: 18px; }
  h1 { font-size: 32px; }
  .body-copy { margin-bottom: 20px; }
}
