/* Rye Remedial: calm and coastal. Sand, sea-green and white; Mercury's
   documented override point (web root, beside index.php). */
:root, .dark {
  color-scheme: light;
  --background: #fbf8f2;
  --foreground: #1d3534;
  --card: #f3ece0;
  --card-foreground: #1d3534;
  --primary: #2f6f68;
  --primary-foreground: #ffffff;
  --secondary: #e4efea;
  --secondary-foreground: #1d3534;
  --muted: #f3ece0;
  --muted-foreground: #4c625f;
  --accent: #dcebe5;
  --accent-foreground: #1d3534;
  --destructive: #b5452f;
  --destructive-foreground: #ffffff;
  --border: #e2d7c4;
  --input: #d6cab5;
  --font-sans: "Lora", Georgia, serif;
  --font-serif: "Lora", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --radius: 14px;
  --rr-sand: #f3ece0;
  --rr-sun: #d9a46b;
  --rr-foam: #e4efea;
  --rr-width: 1120px;
  --rr-gutter: 16px;
  --navbar-height: calc(var(--spacing) * 15);
}
@media (min-width: 768px) {
  :root { --rr-gutter: 32px; }
}

html { scroll-behavior: smooth; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
::selection { background: var(--primary); color: var(--primary-foreground); }
a { color: var(--primary); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rr-sun); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 600; color: var(--foreground); letter-spacing: -.01em; }

/* Header: mark plus the name, set in Lora. */
.navbar { max-width: var(--rr-width); padding: 14px var(--rr-gutter); }
.navbar--logo a[rel=home], .navbar--modal-logo a[rel=home] { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foreground); }
.navbar .branding { height: 52px; width: 52px; flex: none; }
.navbar .branding img { object-fit: contain; }
.navbar--logo a[rel=home]::after, .navbar--modal-logo a[rel=home]::after { content: "Rye Remedial"; font: 600 22px/1.1 var(--font-sans); letter-spacing: -.01em; }
.navbar--menu a[data-level="1"] { font-weight: 600; color: var(--foreground); }
.navbar--menu a[data-level="1"][href="/book"] { background: var(--primary); color: var(--primary-foreground); padding-inline: 18px; border-radius: 999px; }
.navbar--menu a[data-level="1"][href="/book"]:hover { background: #255a54; }
.navbar--menu a.is-active:not([href="/book"]) { text-decoration: underline; text-decoration-color: var(--rr-sun); text-decoration-thickness: 2px; }

/* Page titles and content column. */
.layout-container > header > .container { max-width: var(--rr-width); padding: 40px var(--rr-gutter) 8px; }
.layout-container > header h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; text-wrap: balance; }
/* Mercury's content region already pads 16px each side. */
main article { max-width: calc(var(--rr-width) - 32px); margin: 0 auto; padding: 8px calc(var(--rr-gutter) - 16px) 72px; }
main article > div { max-width: 720px; }
main article p, main article li { font-size: 18px; }
main article p:first-child { font-size: 21px; line-height: 1.55; color: var(--foreground); }
main article h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--border); }
main article h3 { font-size: 1.3rem; margin: 32px 0 8px; }
main article ul, main article ol { padding-left: 1.3em; }
main article ul { list-style: disc; }
main article ol { list-style: decimal; }
main article li::marker { color: var(--primary); font-weight: 700; }
main article li { margin: 6px 0; }
main article table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
main article th, main article td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 17px; }
main article thead th { background: var(--rr-foam); font-family: var(--font-body); font-weight: 700; }
main article tbody tr:last-child td { border-bottom: 0; }
main article td:not(:first-child), main article th:not(:first-child) { text-align: right; white-space: nowrap; }

/* Photos the rye_brand module adds above a page's text, with their credit. */
.rr-photo { margin: 8px 0 36px; max-width: 900px; }
.rr-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--radius) + 6px); }
.rr-photo figcaption, main article .rr-credit { margin-top: 8px; font-size: 13px !important; color: var(--muted-foreground); }
.rr-photo figcaption a, .rr-credit a { color: inherit; }
main article .rr-credit { margin-top: 48px; }

/* Front page: a full-width hero photo with the title over it. */
.path-frontpage .layout-container > header { position: relative; }
.path-frontpage .layout-container > header > .container { position: relative; max-width: none; margin: 0; min-height: min(72vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px max(var(--rr-gutter), calc((100vw - var(--rr-width)) / 2 + var(--rr-gutter))) 56px; background: linear-gradient(180deg, rgb(10 30 30 / 0) 30%, rgb(10 30 30 / .55) 100%), url("/brand/photos/sorrento-back-beach-1800.webp") center 60% / cover no-repeat; }
.path-frontpage .layout-container > header h1 { max-width: 760px; color: #fff; font-size: clamp(2.6rem, 8vw, 4.8rem); line-height: 1.04; letter-spacing: -.02em; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.path-frontpage .layout-container > header h1::before { content: "Rye Remedial · Mornington Peninsula"; display: block; margin-bottom: 16px; font: 700 13px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rr-sand); }
.path-frontpage main article { padding-top: 40px; }
.path-frontpage main article > div { max-width: none; }
.path-frontpage main article p { max-width: 680px; }
.path-frontpage main article ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 20px 0 0; }
.path-frontpage main article ul li { margin: 0; padding: 26px; background: var(--card); border-radius: calc(var(--radius) + 6px); color: var(--muted-foreground); font-size: 17px; }
.path-frontpage main article ul li strong { display: block; margin-bottom: 8px; font: 600 1.4rem/1.25 var(--font-sans); color: var(--foreground); }
.path-frontpage main article ul li em { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--primary); }
.path-frontpage main article ol { max-width: 680px; }
.path-frontpage main article p:nth-child(2):not(.rr-credit) a { display: inline-block; margin: 4px 10px 4px 0; padding: 12px 22px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-weight: 700; text-decoration: none; }
.path-frontpage main article p:nth-child(2):not(.rr-credit) a + a { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }

/* Footer. */
.site-footer { max-width: var(--rr-width); padding: 0 var(--rr-gutter); }
.site-footer > div > div:first-child { display: none; }
.site-footer > div > div:last-child { padding: 24px 0 32px; }
.site-footer .site-footer--bottom-col:first-child::before { content: "Rye Remedial · Mobile massage and yoga on the Mornington Peninsula"; display: block; color: var(--muted-foreground); font-size: 14px; margin-bottom: 6px; }
.site-footer a { color: var(--muted-foreground); }

@media (max-width: 900px) {
  .path-frontpage main article ul { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .navbar--logo a[rel=home]::after, .navbar--modal-logo a[rel=home]::after { font-size: 20px; }
  .navbar--menu a[data-level="1"][href="/book"] { justify-content: center; }
  .layout-container > header > .container { padding-top: 28px; }
  .path-frontpage .layout-container > header > .container { min-height: 70vh; padding-bottom: 36px; }
  main article p:first-child { font-size: 19px; }
  main article p, main article li { font-size: 17px; }
  main article th, main article td { padding: 12px 10px; font-size: 16px; }
  .path-frontpage main article ul li { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The shop (rye_shop): a card per product under each type's heading. */
.rye-shop__section { margin-top: 2.5rem; }
.rye-shop__section > article { background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.5rem 1.5rem; margin-top: 1rem; max-width: 40rem; }
.rye-shop__section > article > div:first-child { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .35rem; }
.rye-shop__section > article [class*="variation_price"] { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: .5rem 0; }
.rye-shop__section > article form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.rye-shop__section > article form > div:first-of-type { flex: 1 1 14rem; margin: 0; }
.rye-shop__section > article .form-actions { margin: 0; }

/* Offers on Home and Services: the body's only blockquote, shown as a card. */
main blockquote { background: var(--card); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1rem 0 2rem; max-width: 44rem; font-style: normal; }
main blockquote p + p { margin-top: .75rem; }
main blockquote strong { color: var(--primary); }

/* The booking form's code box: the discount, where the price is chosen. */
.rye-booking .rye-booking__code { background: var(--card); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
.rye-booking .rye-booking__code label { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.rye-booking .rye-booking__code input { max-width: 16rem; background: #fff; border: 1px solid var(--primary); border-radius: calc(var(--radius) / 2); padding: .5rem .75rem; margin: .35rem 0; }
.rye-booking .rye-booking__code-status { display: block; font-weight: 600; color: var(--primary); }

/* The code box on Home and Services (rye_booking/codebox). */
.rye-codebox { background: var(--card); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; max-width: 44rem; }
.rye-codebox label { display: block; font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: .35rem; }
.rye-codebox__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.rye-codebox__row input { flex: 1 1 10rem; max-width: 16rem; background: #fff; border: 1px solid var(--primary); border-radius: calc(var(--radius) / 2); padding: .5rem .75rem; }
.rye-codebox__status { margin: .5rem 0 0; }
.rye-codebox.is-applied .rye-codebox__status { font-weight: 600; color: var(--primary); }
.rye-codebox__price { color: var(--primary); font-weight: 700; }
.rye-codebox button { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .5rem 1.25rem; font-weight: 600; cursor: pointer; }
