/* The five home page designs of the OrbitingFox theme. Each design's rules are scoped to the
   body class of-home-<name> that functions.php adds when the page shows that pattern, so a
   design can change the whole page - colours included - without touching the others.
   Shared rules first; they come from designs/_shared.css of the previews. */

html,

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.is-layout-constrained > 

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--wp--custom--radius);
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--wp--preset--color--primary);
}

.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--contrast);
  background: transparent;
  border: 2px solid currentColor;
}

.is-style-accent .wp-block-button__link {
  color: #111;
  background: var(--wp--preset--color--accent);
}

.wp-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.wp-site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(20, 17, 15, 0.14);
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted);
}

.wp-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 12px;
}

.wp-site-footer a {
  text-decoration: none;
}

.preview-note {
  font-size: 0.85rem;
  color: var(--wp--preset--color--muted);
}

/* The theme's own header and footer parts. */
.wp-site-header { padding: 18px 0; }
.wp-site-nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--muted); white-space: nowrap; }
.wp-site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.wp-site-footer .footer-links a { text-decoration: none; }
.wp-block-button__link.wp-element-button { min-height: 48px; display: inline-flex; align-items: center; }
button.wp-block-button__link { border: 0; cursor: pointer; font: inherit; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--primary); background: rgba(29,86,96,.12); }
.tag em { font-style: normal; font-weight: 400; opacity: .8; }
@media (max-width: 600px) {
  .wp-site-header .wp-block-buttons .wp-block-button:first-child { display: none; }
}


/* ---- classic ---- */
body.of-home-classic .hero {padding: 64px 0 56px; }
body.of-home-classic .hero h1 {font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 16ch; }
body.of-home-classic .hero p.lede {max-width: 38rem; margin: 20px 0 28px; font-size: 1.125rem; color: var(--wp--preset--color--muted); }
body.of-home-classic .features {padding: 48px 0; border-top: 1px solid rgba(20,17,15,.14); }
body.of-home-classic .feature {padding: 24px; border-radius: var(--wp--custom--radius); background: #fff; border: 1px solid rgba(20,17,15,.12); }
body.of-home-classic .feature h3 {font-size: 1.25rem; margin: 10px 0 8px; }
body.of-home-classic .feature .tag {display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--primary); background: rgba(29,86,96,.12); }
body.of-home-classic .quote {padding: 48px 0; }
body.of-home-classic .quote blockquote {font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 3vw, 2.25rem); font-style: italic; max-width: 26ch; }
body.of-home-classic .quote cite {display: block; margin-top: 14px; font-style: normal; color: var(--wp--preset--color--muted); }
body.of-home-classic .plans {padding: 48px 0 64px; background: var(--wp--preset--color--soft); }
body.of-home-classic .plans h2 {font-size: 2rem; margin-bottom: 24px; }
body.of-home-classic .wc-block-grid {display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
body.of-home-classic .wc-block-grid__product {display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--wp--custom--radius); background: #fff; border: 1px solid rgba(20,17,15,.12); }
body.of-home-classic .wc-block-grid__product.is-featured {border-color: var(--wp--preset--color--accent); box-shadow: 0 12px 30px -16px rgba(0,0,0,.3); }
body.of-home-classic .wc-block-grid__product-title {font-family: var(--wp--preset--font-family--heading); font-size: 1.375rem; }
body.of-home-classic .wc-block-grid__product-price {font-size: 2rem; font-weight: 700; }
body.of-home-classic .wc-block-grid__product-price small {font-size: 1rem; font-weight: 400; color: var(--wp--preset--color--muted); }
body.of-home-classic .wc-block-grid__product ul {padding-left: 18px; color: var(--wp--preset--color--muted); }
@media (max-width: 760px) {
  body.of-home-classic .wc-block-grid {grid-template-columns: 1fr; }
}

/* ---- shop ---- */
body.of-home-shop {--wp--preset--color--primary: #0f4c57; --wp--preset--color--accent: #ff7a1a; --wp--preset--color--base: #fff6e9; }
body.of-home-shop .banner {padding: 10px 0; text-align: center; font-weight: 700; color: #111; background: #ffd23f; }
body.of-home-shop .hero {display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 32px; align-items: center; padding: 48px 0; }
body.of-home-shop .hero h1 {font-size: clamp(2.25rem, 5vw, 3.5rem); }
body.of-home-shop .hero .lede {margin: 16px 0 24px; font-size: 1.125rem; color: var(--wp--preset--color--muted); }
body.of-home-shop .hero-card {padding: 24px; border-radius: 18px; background: #fff; border: 1px solid rgba(20,17,15,.12); box-shadow: 0 16px 40px -20px rgba(0,0,0,.35); }
body.of-home-shop .hero-card h3 {font-size: 1.1rem; margin-bottom: 10px; }
body.of-home-shop .hero-card ul {list-style: none; padding: 0; display: grid; gap: 8px; }
body.of-home-shop .hero-card li {display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--wp--preset--color--soft); }
body.of-home-shop .shop {padding: 24px 0 56px; }
body.of-home-shop .shop-head {display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
body.of-home-shop .shop h2 {font-size: 2rem; }
body.of-home-shop .wc-block-grid {display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
body.of-home-shop .wc-block-grid__product {display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid rgba(20,17,15,.12); }
body.of-home-shop .wc-block-grid__product-image {aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent)); }
body.of-home-shop .onsale {position: absolute; margin: 10px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #111; background: #ffd23f; }
body.of-home-shop .wc-block-grid__product-title {font-family: var(--wp--preset--font-family--heading); font-size: 1.375rem; }
body.of-home-shop .wc-block-grid__product-price {font-size: 1.5rem; font-weight: 700; }
body.of-home-shop .wc-block-grid__product-price del {margin-right: 6px; font-weight: 400; color: var(--wp--preset--color--muted); }
body.of-home-shop .wc-block-grid__product-price small {font-size: .95rem; font-weight: 400; color: var(--wp--preset--color--muted); }
body.of-home-shop .wc-block-grid__product-add-to-cart .wp-block-button__link {width: 100%; justify-content: center; }
body.of-home-shop .trust {padding: 32px 0 56px; }
body.of-home-shop .trust .wp-block-columns > div {padding: 18px; border-radius: 12px; background: #fff; border: 1px solid rgba(20,17,15,.12); }
body.of-home-shop .trust strong {display: block; margin-bottom: 4px; }
@media (max-width: 800px) {
  body.of-home-shop .hero {grid-template-columns: 1fr; }
  body.of-home-shop .wc-block-grid {grid-template-columns: 1fr; }
}

/* ---- magazine ---- */
body.of-home-magazine {--wp--preset--color--base: #ffffff; --wp--preset--color--soft: #f4f1ea; }
body.of-home-magazine .masthead {padding: 28px 0 20px; border-bottom: 3px double var(--wp--preset--color--contrast); text-align: center; }
body.of-home-magazine .masthead h1 {font-size: clamp(2rem, 4.5vw, 3.25rem); }
body.of-home-magazine .masthead p {margin-top: 8px; color: var(--wp--preset--color--muted); }
body.of-home-magazine .cats {display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid rgba(20,17,15,.14); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
body.of-home-magazine .cats a {text-decoration: none; color: var(--wp--preset--color--muted); }
body.of-home-magazine .front {display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding: 32px 0 48px; }
body.of-home-magazine .stories {display: grid; gap: 24px; }
body.of-home-magazine .story {display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid rgba(20,17,15,.14); }
body.of-home-magazine .story.is-featured {grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; align-items: center; }
body.of-home-magazine .story-image {aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(120deg, #1d5660, #df7a2f 70%, #f4cf78); }
body.of-home-magazine .story-terms {font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--accent); }
body.of-home-magazine .story-title {font-size: 1.5rem; }
body.of-home-magazine .is-featured .story-title {font-size: clamp(1.5rem, 3vw, 2.25rem); }
body.of-home-magazine .story-excerpt {color: var(--wp--preset--color--muted); }
body.of-home-magazine .story-date {font-size: .85rem; color: var(--wp--preset--color--muted); }
body.of-home-magazine .grid2 {display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
body.of-home-magazine .sidebar {display: grid; gap: 20px; align-content: start; }
body.of-home-magazine .widget {padding: 20px; border-radius: 10px; background: var(--wp--preset--color--soft); }
body.of-home-magazine .widget h3 {font-size: 1.1rem; margin-bottom: 10px; }
body.of-home-magazine .widget input {width: 100%; padding: 12px; margin: 8px 0; border: 1px solid rgba(20,17,15,.2); border-radius: 8px; font-size: 1rem; }
body.of-home-magazine .widget ul {padding-left: 18px; color: var(--wp--preset--color--muted); }
@media (max-width: 800px) {
  body.of-home-magazine .front {grid-template-columns: 1fr; }
  body.of-home-magazine .story.is-featured {grid-template-columns: 1fr; }
  body.of-home-magazine .grid2 {grid-template-columns: 1fr; }
}

/* ---- landing ---- */
body.of-home-landing {--wp--style--global--content-size: 680px; }
body.of-home-landing .of-section {padding: 40px 0; }
body.of-home-landing .hero {padding: 72px 0 40px; text-align: center; }
body.of-home-landing .hero h1 {font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -.03em; }
body.of-home-landing .hero p {margin: 20px auto 28px; max-width: 34rem; font-size: 1.2rem; color: var(--wp--preset--color--muted); }
body.of-home-landing .hero .wp-block-buttons {justify-content: center; }
body.of-home-landing .capture {display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
body.of-home-landing .capture input {flex: 1; min-width: 0; padding: 14px 16px; font-size: 1.05rem; border: 1.5px solid rgba(20,17,15,.2); border-radius: 12px; }
body.of-home-landing .capture .wp-block-button__link {background: var(--wp--preset--color--accent); color: #111; }
body.of-home-landing .capture-note {margin-top: 10px; font-size: .9rem; color: var(--wp--preset--color--muted); text-align: center; }
body.of-home-landing .of-section h2.wp-block-heading {font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
body.of-home-landing .step {display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid rgba(20,17,15,.14); }
body.of-home-landing .step .n {display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; color: #111; background: #f4cf78; }
body.of-home-landing .step h3 {font-size: 1.25rem; margin-bottom: 4px; }
body.of-home-landing .step p {color: var(--wp--preset--color--muted); }
body.of-home-landing .wp-block-details {padding: 14px 0; border-top: 1px solid rgba(20,17,15,.14); }
body.of-home-landing .wp-block-details:last-of-type {border-bottom: 1px solid rgba(20,17,15,.14); }
body.of-home-landing .wp-block-details summary {cursor: pointer; font-weight: 700; padding: 6px 0; }
body.of-home-landing .wp-block-details p {padding: 8px 0 4px; color: var(--wp--preset--color--muted); }
body.of-home-landing .final {text-align: center; padding: 56px 0 72px; }
body.of-home-landing .final .wp-block-buttons {justify-content: center; margin-top: 16px; }

/* ---- dark ---- */
body.of-home-dark {--wp--preset--color--base: #0b0f14; --wp--preset--color--contrast: #eef2f7; --wp--preset--color--muted: #9aa7b8; --wp--preset--color--soft: #141b24; --wp--preset--color--primary: #7cc7d4; --wp--preset--color--accent: #ff9a4d; --wp--preset--font-family--heading: var(--wp--preset--font-family--body); }
body.of-home-dark {color-scheme: dark; }
body.of-home-dark .wp-block-button__link {color: #06181c; }
body.of-home-dark .is-style-outline .wp-block-button__link {color: var(--wp--preset--color--contrast); }
body.of-home-dark .wp-site-footer {border-top-color: rgba(238,242,247,.14); }
body.of-home-dark .hero {padding: 72px 0 48px; text-align: center; background: radial-gradient(60% 50% at 50% 0%, rgba(255,154,77,.25), transparent 70%); }
body.of-home-dark .hero h1 {max-width: 16ch; margin: 0 auto; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
body.of-home-dark .hero p {max-width: 36rem; margin: 20px auto 28px; font-size: 1.15rem; color: var(--wp--preset--color--muted); }
body.of-home-dark .hero .wp-block-buttons {justify-content: center; }
body.of-home-dark .logos {display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 16px 0 40px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
body.of-home-dark .bento {display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding: 24px 0 48px; }
body.of-home-dark .tile {display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 16px; border: 1px solid rgba(238,242,247,.12); background: linear-gradient(180deg, #161e29, #0f151d); }
body.of-home-dark .tile.wide {grid-column: span 2; }
body.of-home-dark .tile .tag {font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--primary); }
body.of-home-dark .tile h3 {font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
body.of-home-dark .tile p {color: var(--wp--preset--color--muted); }
body.of-home-dark .pricing {padding: 32px 0 64px; }
body.of-home-dark .pricing h2 {text-align: center; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
body.of-home-dark .toggle {display: flex; justify-content: center; gap: 6px; margin: 12px 0 24px; }
body.of-home-dark .toggle span {padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(238,242,247,.2); font-size: .9rem; }
body.of-home-dark .toggle .on {color: #06181c; background: var(--wp--preset--color--primary); border-color: transparent; }
body.of-home-dark .wc-block-grid {display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
body.of-home-dark .wc-block-grid__product {display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 16px; border: 1px solid rgba(238,242,247,.12); background: var(--wp--preset--color--soft); }
body.of-home-dark .wc-block-grid__product.is-featured {border-color: var(--wp--preset--color--accent); }
body.of-home-dark .wc-block-grid__product-title {font-size: 1.25rem; font-weight: 700; }
body.of-home-dark .wc-block-grid__product-price {font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
body.of-home-dark .wc-block-grid__product-price small {font-size: .95rem; font-weight: 400; color: var(--wp--preset--color--muted); }
body.of-home-dark .wc-block-grid__product ul {padding-left: 18px; color: var(--wp--preset--color--muted); }
@media (max-width: 800px) {
  body.of-home-dark .bento, body.of-home-dark .wc-block-grid {grid-template-columns: 1fr; }
  body.of-home-dark .tile.wide {grid-column: auto; }
}
