/* Roll House website styles
   Colours follow the app's 60-30-10 rule (claude/design/app-design-direction.md):
   60% white and Counter White, 30% charcoal, 10% Roll House Red (one main action per screen).
   Gold and brown are used only for rewards. */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #F5F5F0;
  --white: #FFFFFF;
  --ink: #1E1F1E;
  --ink-2: #5C5F5D;
  --body-2: #3F423F;
  --line: #E4E2D8;
  --red: #DC3636;
  --red-hover: #C42F2F;
  --crust: #D9963F;
  --crust-shade: #B8732A;
  --crumb: #F7E7C6;
  --dough: #F1E9D8;
  --dough-edge: #D3C6A9;
  --crust-brown: #9A5B13;
  --gold-wash: #FBF4E6;
  --on-dark: #D4D6D3;
  --on-dark-2: #B9BCB8;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anton", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --shadow-card: 0 1px 2px rgba(30, 31, 30, 0.06), 0 8px 24px rgba(30, 31, 30, 0.06);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  left: 12px;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Announcement strip and header ---------- */

.strip {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 16px;
  margin: 0;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(30, 31, 30, 0.06);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 16px;
}

.site-header__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 36px;
}

.brand {
  display: flex;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 64px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.site-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.store-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .brand img {
    width: 56px;
    height: 56px;
  }

  .site-header__inner {
    gap: 4px 16px;
    padding-block: 12px;
  }

  .site-header__left {
    gap: 4px 20px;
  }

  .nav {
    gap: 0 20px;
  }

  .site-header__right {
    gap: 4px 16px;
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-hover);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--outline-light {
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--small {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.arrow-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow--reward {
  color: var(--crust-brown);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.display--page {
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1;
}

.display--xl {
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.02;
}

.display--lg {
  font-size: clamp(40px, 4.4vw, 68px);
}

.display--md {
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.05;
}

.display--sm {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}

.small-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Half-photo, half-colour blocks ---------- */

.split {
  display: flex;
  flex-wrap: wrap;
  background: var(--white);
}

.split--reverse {
  flex-direction: row-reverse;
}

.split__media {
  flex: 1 1 520px;
  position: relative;
  min-height: clamp(300px, 46vw, 660px);
  background: var(--canvas);
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__text {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px);
}

.split__panel {
  flex: 1 1 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(16px, 6vw, 96px);
}

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark .eyebrow {
  color: var(--on-dark);
}

.dark .lead {
  color: #E6E7E4;
}

.gold {
  background: var(--gold-wash);
}

.gold .lead {
  color: var(--body-2);
}

.hero .split__media {
  min-height: clamp(300px, 46vw, 680px);
}

/* ---------- Loyalty card illustration ---------- */

.loyalty-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(30, 31, 30, 0.06), 0 12px 32px rgba(154, 91, 19, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loyalty-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.loyalty-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.loyalty-card__count {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
}

.roll-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roll-grid > span {
  background: var(--canvas);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roll {
  width: 100%;
  height: auto;
  --roll-body: var(--crust);
  --roll-edge: var(--crust-shade);
  --roll-score: var(--crumb);
}

.roll--dough {
  --roll-body: var(--dough);
  --roll-edge: var(--dough-edge);
  --roll-score: var(--white);
}

.roll__body {
  fill: var(--roll-body);
  stroke: var(--roll-edge);
  stroke-width: 2;
}

.roll__score {
  fill: none;
  stroke: var(--roll-score);
  stroke-width: 4;
  stroke-linecap: round;
}

.loyalty-card__caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Sections and cards ---------- */

.section {
  padding-block: clamp(48px, 6vw, 96px);
}

.section--canvas {
  background: var(--canvas);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.card img {
  flex: none;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--canvas);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.card:hover .card__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Store details ---------- */

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details {
  margin: 0;
  display: grid;
  gap: 18px;
}

.details dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.details dd {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.details a {
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* ---------- Page heading band (menu and help pages) ---------- */

.page-head {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: clamp(40px, 5vw, 72px);
}

/* ---------- Menu page ---------- */

.menu-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 56px;
  padding-block: clamp(32px, 4vw, 64px) clamp(56px, 6vw, 96px);
}

.menu-nav {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (min-width: 900px) {
  .menu-nav {
    position: sticky;
    top: 24px;
  }
}

.menu-nav h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.menu-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.menu-section {
  scroll-margin-top: 24px;
}

.menu-section > h2 {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.menu-item img {
  flex: none;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--canvas);
  box-shadow: 0 1px 2px rgba(30, 31, 30, 0.06), 0 8px 24px rgba(30, 31, 30, 0.08);
}

.menu-item h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Text pages (privacy, terms, support, deletion) ---------- */

.prose {
  max-width: 780px;
  padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 96px);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.7;
  color: #2E302E;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.updated {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.callout {
  background: var(--canvas);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.contact-cards,
.prose .contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.contact-card,
.prose .contact-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contact-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.faq {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq .faq__answer {
  padding: 0 0 20px;
}

.faq .faq__answer > :last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: clamp(48px, 5vw, 72px) 32px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
}

.footer-brand p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 24px;
}

.footer-col h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 15px;
  color: var(--on-dark);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--on-dark);
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom p {
  margin: 0;
  align-self: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-2);
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: clamp(64px, 10vw, 140px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
