/*
Theme Name: DishBox
Theme URI: https://DishBox.online
Author: DishBox
Author URI: https://DishBox.online
Description: A small one-page recipe theme for everyday home cooking. Cream background, natural green accent, and no invented contact details.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dishbox
Tags: one-column, custom-menu, food-and-drink, featured-images, translation-ready
*/

:root {
  --cream: #f6f1e8;
  --paper: #fffcf8;
  --white: #ffffff;
  --green: #246348;
  --green-deep: #1a4633;
  --green-soft: #e5f0e8;
  --ink: #1c211e;
  --muted: #5c655e;
  --line: #e4dcd0;
  --shadow: 0 16px 40px rgba(28, 33, 30, 0.08);
  --radius: 22px;
  --header-h: 72px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 80;
  transform: translateY(-150%);
  background: var(--green);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 14px;
}

.section-lead,
.hero-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 28px;
  max-width: 40rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-green:hover {
  background: var(--green-deep);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green-deep);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green-soft);
}

.btn-light {
  background: var(--white);
  color: var(--green-deep);
}

.btn-light:hover {
  background: var(--cream);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::selection {
  background: #d5eadc;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(28, 33, 30, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo-word {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-word span {
  color: var(--green);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.primary-nav.is-open {
  display: block;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

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

.primary-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: var(--green-soft);
  color: var(--green-deep);
}

.header-cta {
  display: none;
}

.nav-cta {
  width: calc(100% - 8px);
  margin: 6px 4px 4px;
}

/* Hero */
.hero {
  padding: 28px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(2.45rem, 6vw, 4.35rem);
  max-width: 14ch;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(28, 33, 30, 0.12);
}

/* About */
.about {
  background: var(--white);
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.focus-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* Recipes */
.recipe-grid,
.why-grid {
  display: grid;
  gap: 16px;
}

.recipe-card,
.why-card,
.recipe-sheet,
.contact-form {
  background: var(--white);
  border: 1px solid rgba(228, 220, 208, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(28, 33, 30, 0.05);
}

.recipe-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recipe-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px 18px 20px;
}

.recipe-card h3 {
  font-size: 1.45rem;
}

.recipe-card p,
.why-card p {
  margin: 0;
  color: var(--muted);
}

.recipe-card .btn {
  width: 100%;
  margin-top: auto;
}

.recipe-sheets {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.recipe-sheet {
  padding: 14px;
  scroll-margin-top: 96px;
}

.recipe-sheet img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.recipe-sheet-body {
  padding: 16px 6px 8px;
}

.recipe-sheet h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.recipe-meta li {
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.recipe-columns {
  display: grid;
  gap: 8px 24px;
}

.recipe-columns h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.recipe-columns ul,
.recipe-columns ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.recipe-columns li + li {
  margin-top: 6px;
}

.recipe-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Why */
.why {
  background: #e7f2eb;
}

.why-card {
  padding: 22px 20px 24px;
}

.why-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

/* CTA */
.cta-band {
  background: var(--green-deep);
  color: #f6f1e8;
  border-radius: 28px;
  padding: 48px 22px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 22px;
  color: rgba(246, 241, 232, 0.9);
}

/* Contact */
.contact-form {
  padding: 20px 18px 22px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #ddd4c8;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 1rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 600;
}

.form-status.is-error {
  background: #fdecea;
  color: #8d2f24;
}

.contact-form .btn {
  width: 100%;
}

/* Legal */
.legal {
  padding-top: 10px;
  padding-bottom: 36px;
}

.legal-block {
  scroll-margin-top: 96px;
}

.legal-block + .legal-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal ul {
  margin: 0;
  padding-left: 1.15rem;
}

/* Footer */
.site-footer {
  background: #1c2822;
  color: #e7efe9;
  padding: 36px 0;
}

.footer-logo .logo-word,
.footer-logo .logo-word span {
  color: #f6f1e8;
}

.copyright {
  margin: 8px 0 0;
  color: rgba(231, 239, 233, 0.82);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content {
  padding-top: 48px;
}

.entry {
  max-width: 68ch;
}

.entry h2,
.entry h3 {
  margin: 1.3em 0 0.4em;
}

.entry p,
.entry li {
  color: var(--muted);
}

.not-found {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.not-found .section-lead {
  margin-inline: auto;
}

@media (min-width: 700px) {
  .container {
    width: min(1120px, calc(100% - 48px));
  }

  .recipe-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .recipe-columns {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .contact-form .btn {
    width: auto;
  }

  .footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .footer-links {
    margin-top: 0;
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 84px;
  }

  .section {
    padding: 104px 0;
  }

  .menu-toggle {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .header-cta {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav .nav-cta {
    display: none;
  }

  .primary-nav,
  .primary-nav.is-open {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .primary-nav a {
    padding: 8px 12px;
  }

  .primary-nav a:hover,
  .primary-nav a.is-active {
    background: transparent;
    color: var(--green);
  }

  .hero {
    padding: 54px 0 96px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }

  .contact-grid {
    align-items: start;
  }

  .recipe-sheet {
    grid-template-columns: 280px 1fr;
    display: grid;
    gap: 28px;
    padding: 18px;
    align-items: start;
  }

  .recipe-sheet-body {
    padding: 8px 8px 8px 0;
  }

  .cta-band {
    padding: 72px 48px;
  }
}

@media (min-width: 1100px) {
  .recipe-grid,
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .recipe-card,
  .why-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .recipe-card:hover,
  .why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(28, 33, 30, 0.1);
  }
}

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

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