/*
Theme Name: Ricely Done 2026
Theme URI: https://itsricelydone.com
Description: Block theme for Ricely Done. Red and cream one-page design (261013). Child theme of Twenty Twenty-Five.
Author: Ricely Done
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.5
Text Domain: ricelydone-2026
*/

/* ==========================================================================
   Tokens (from the Ricely Done design system)
   ========================================================================== */
:root {
  --rd-red: #D81113;
  --rd-red-600: #B80E10;
  --rd-red-900: #4A0708;
  --rd-red-100: #FADBD3;
  --rd-ivory: #FAF9EE;
  --rd-ivory-2: #F2EEDB;
  --rd-cream: #FDF8EE;
  --rd-ink: #2B1A17;
  --rd-muted: #6B5550;
  --rd-line: #E3D9C6;
  --rd-display: "Fraunces", "Cooper Black", Georgia, serif;
  --rd-sans: "Figtree", "Avenir Next", system-ui, sans-serif;
}

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

html body { background: var(--rd-ivory); color: var(--rd-ink); }
@media (max-width: 700px) { html body { font-size: 1.125rem; } }

/* Header is the sticky floating bar. The template-part wrapper is the sticky element. */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* ==========================================================================
   Base for every Ricely Done block
   ========================================================================== */
.rd, .rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd a { color: inherit; text-decoration: none; }
.rd a:hover { opacity: .85; }
.rd a:focus-visible { outline: 3px solid var(--rd-ink); outline-offset: 3px; }
.rd h1, .rd h2, .rd h3 {
  font-family: var(--rd-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.rd p { margin: 0; }
.rd img { max-width: none; }

.rd-wrap { max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.rd-only-m { display: none; }
@media (max-width: 700px) {
  .rd-wrap { padding-left: 16px; padding-right: 16px; }
  .rd-only-d { display: none; }
  .rd-only-m { display: inline; }
}

.rd-eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rd-red);
  margin-bottom: 10px;
}
.rd .rd-h2 { font-size: clamp(42px, 5vw, 64px); }
.rd-sub { font-size: clamp(20px, 1.7vw, 22px); color: var(--rd-muted); margin-top: 14px; }

.rd .rd-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  background: var(--rd-red);
  color: var(--rd-cream);
}
.rd .rd-btn:hover { background: var(--rd-red-600); opacity: 1; }
.rd .rd-btn--lg { padding: 16px 32px; }
.rd .rd-btn--ghost { background: transparent; color: var(--rd-ink); border: 2px solid var(--rd-ink); padding: 14px 32px; }
.rd .rd-btn--ghost:hover { background: var(--rd-ink); color: var(--rd-cream); }

/* ==========================================================================
   Header bar
   ========================================================================== */
.rd-navwrap { padding: 16px 24px 0; }
.rd-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 8px 10px 8px 18px;
  background: rgba(250, 249, 238, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rd-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(43, 26, 23, .08);
}
.rd-nav__logo { display: flex; align-items: center; }
.rd-nav__logo img { height: 48px; width: auto; display: block; }
.rd-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 19px; font-weight: 600; }
.rd-nav__links a { padding: 10px 0; }
@media (max-width: 700px) {
  .rd-navwrap { padding: 12px 12px 0; }
  .rd-nav { flex-direction: column; gap: 4px; padding: 8px 10px 6px; border-radius: 28px; }
  .rd-nav__logo img { height: 40px; }
  .rd-nav__links { justify-content: center; gap: 0 14px; font-size: 18px; white-space: nowrap; }
  .rd-nav__links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
  .rd-nav .rd-btn { display: none; }
}

/* ==========================================================================
   Hero and wavy band
   ========================================================================== */
.rd-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  column-gap: 64px;
  row-gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 8px;
}
.rd-hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.rd .rd-h1 { font-size: clamp(54px, 7.2vw, 92px); line-height: .98; }
.rd-h1 span { color: var(--rd-red); }
.rd-lede { font-size: clamp(20px, 1.6vw, 22px); max-width: 500px; color: var(--rd-muted); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rd-hero__img { width: 100%; height: 620px; object-fit: cover; border-radius: 40px; display: block; }
@media (max-width: 700px) {
  .rd-hero { padding-top: 36px; row-gap: 28px; }
  .rd-hero__copy { gap: 20px; }
  .rd-hero__img { height: 420px; border-radius: 28px; }
  .rd .rd-btn--lg { padding: 14px 26px; }
  .rd .rd-btn--ghost { padding: 12px 26px; }
}

.rd-band { padding: 8px 0 16px; }
.rd-band svg { display: block; width: 100%; height: auto; overflow: hidden; }
.rd-band .rd-band__m { display: none; }
@media (max-width: 767px) {
  .rd-band { padding: 0 0 12px; }
  .rd-band .rd-band__d { display: none; }
  .rd-band .rd-band__m { display: block; }
}

/* ==========================================================================
   Products
   ========================================================================== */
.rd-products { padding-top: 48px; padding-bottom: 112px; scroll-margin-top: 96px; }
.rd-products__head { margin-bottom: 48px; }
.rd-feature {
  background: var(--rd-red);
  color: var(--rd-cream);
  border-radius: 32px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  column-gap: 80px;
  row-gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.rd-feature img, .rd-card img {
  width: 100%;
  height: 440px;
  object-fit: contain;
  background: #FCFBF8;
  border-radius: 22px;
  padding: 20px;
  display: block;
}
.rd-card img { background: #FEFCF8; }
.rd-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 8px 0; }
.rd-feature__body p { max-width: 460px; }
.rd .rd-h3-l { font-size: 40px; }
.rd-tag { font-size: 16px; font-weight: 700; }
.rd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.rd-card { border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.rd-card--pink { background: var(--rd-red-100); }
.rd-card--sand { background: var(--rd-ivory-2); }
.rd .rd-card h3 { font-size: 40px; line-height: 1.05; }
.rd-card__body { flex: 1; }
.rd-card__body p { margin-top: 10px; }
@media (max-width: 700px) {
  .rd-products { padding-top: 40px; padding-bottom: 64px; scroll-margin-top: 120px; }
  .rd-products__head { margin-bottom: 28px; }
  .rd-feature { border-radius: 28px; padding: 22px; gap: 14px; }
  .rd-feature img, .rd-card img { height: 320px; border-radius: 18px; padding: 14px; }
  .rd .rd-h3-l { font-size: 30px; }
  .rd-cards { gap: 16px; }
  .rd-card { border-radius: 24px; padding: 20px; gap: 12px; }
  .rd .rd-card h3 { font-size: 30px; line-height: 1.1; }
  .rd-card__body p { font-size: 18px; }
}

/* ==========================================================================
   Why rice
   ========================================================================== */
.rd-why { background: var(--rd-red-900); color: var(--rd-cream); overflow: hidden; scroll-margin-top: 96px; }
.rd-why__inner {
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  column-gap: 64px;
  row-gap: 48px;
  align-items: center;
}
.rd-why__head { grid-column: 1 / -1; }
.rd-why .rd-eyebrow { color: #F3B0A3; margin-bottom: 14px; }
.rd-why__img { width: 100%; height: 540px; object-fit: cover; border-radius: 32px; display: block; }
.rd-list { display: flex; flex-direction: column; }
.rd-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 28px 0;
  border-top: 2px solid rgba(253, 248, 238, .25);
}
.rd-item:last-child { border-bottom: 2px solid rgba(253, 248, 238, .25); }
.rd-item__n { font-family: var(--rd-display); font-weight: 800; font-size: 26px; color: #E8786A; }
.rd .rd-item h3 { font-size: 30px; line-height: 1.1; font-weight: 700; }
.rd-item p { margin-top: 10px; color: #F3E3DC; }
@media (max-width: 700px) {
  .rd-why { scroll-margin-top: 120px; }
  .rd-why__inner { padding-top: 72px; padding-bottom: 72px; row-gap: 28px; }
  .rd-why__img { height: 400px; border-radius: 24px; }
  .rd-item { grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding: 20px 0; }
  .rd-item__n { font-size: 20px; }
  .rd .rd-item h3 { font-size: 24px; }
  .rd-item p { margin-top: 8px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.rd-about { background: var(--rd-ivory-2); scroll-margin-top: 96px; }
.rd-about__inner {
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  column-gap: 64px;
  row-gap: 48px;
  align-items: center;
}
.rd-about__img { width: 100%; height: 600px; object-fit: cover; border-radius: 40px; display: block; }
.rd-about__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.rd-about__copy .rd-eyebrow { margin-bottom: 0; }
.rd-about__copy h2 span { color: var(--rd-red); }
.rd-about__text { font-size: clamp(20px, 1.6vw, 22px); }
@media (max-width: 700px) {
  .rd-about { scroll-margin-top: 120px; }
  .rd-about__inner { padding-top: 72px; padding-bottom: 72px; row-gap: 22px; }
  .rd-about__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .rd-about__copy { display: contents; }
  .rd-about__img { order: 1; height: 420px; border-radius: 28px; }
  .rd-about__copy .rd-btn { order: 2; }
}

/* ==========================================================================
   Footer / contact
   ========================================================================== */
.rd-foot { background: var(--rd-red); color: var(--rd-cream); scroll-margin-top: 96px; }
.rd-foot a:focus-visible { outline-color: var(--rd-cream); }
.rd-foot__inner { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.rd-foot__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px 64px;
  align-items: start;
}
.rd-foot__brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rd-foot__brand img { width: 220px; height: auto; display: block; }
.rd .rd-foot__brand h2 { font-size: clamp(42px, 5vw, 64px); }
.rd-foot__brand p { font-size: 19px; max-width: 380px; }
.rd-foot__contact { display: flex; flex-direction: column; gap: 18px; }
.rd .rd-foot__contact h3 { font-size: 30px; font-weight: 700; }
.rd-label { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-red-100); margin-bottom: 4px; }
.rd-foot__mail { font-size: 19px; font-weight: 700; }
.rd-social { display: flex; gap: 12px; margin-top: 6px; }
.rd .rd-social a {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--rd-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rd-signup { display: flex; flex-direction: column; gap: 14px; }
.rd .rd-signup h3 { font-size: 30px; font-weight: 700; }
.rd-signup label { font-size: 19px; }
.rd-signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-signup input[type="email"] {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--rd-cream);
  background: var(--rd-cream);
  color: var(--rd-ink);
  font: inherit;
}
.rd-signup button {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--rd-red-900);
  color: var(--rd-cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rd-signup button:hover { opacity: .9; }
.rd-foot input:focus-visible, .rd-foot button:focus-visible { outline: 3px solid var(--rd-cream); outline-offset: 3px; }
.rd-signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rd-signup__msg { font-weight: 700; }
.rd-signup__msg:empty { display: none; }
.rd-foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(253, 248, 238, .35);
}
.rd-foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.rd-foot__copy { font-size: 16px; }
.rd-foot__copy a { text-decoration: underline; }
@media (max-width: 700px) {
  .rd-foot { scroll-margin-top: 120px; }
  .rd-foot__inner { padding-top: 64px; padding-bottom: 32px; gap: 36px; }
  .rd-foot__top { gap: 36px; }
  .rd-foot__brand { gap: 16px; }
  .rd-foot__brand img { width: 170px; }
  .rd-foot__brand p { font-size: 18px; }
  .rd-foot__contact { gap: 14px; }
  .rd-foot__mail { font-size: 18px; }
  .rd-signup { gap: 12px; }
  .rd-signup label { font-size: 18px; }
  .rd-signup__row { flex-direction: column; gap: 12px; }
  .rd-signup input[type="email"] { flex: none; }
  .rd-foot__nav { gap: 0 22px; font-size: 18px; }
  .rd-foot__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .rd-foot__copy { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd a { transition: none; }
}
