/* ==========================================================================
   Eat Rabbit Food
   ========================================================================== */

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #3b8249;
    --green-dark: #2f6b3b;
    --green-deep: #25552f;
    --cream: #fbfaf6;
    --ink: #16201a;
    --text: #3d4a42;
    --muted: #75827a;
    --line: #e4e6df;
    --white-70: rgba(255, 255, 255, .72);
    --white-20: rgba(255, 255, 255, .18);
    --radius: 12px;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main { flex: 1; }

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

p { margin: 0; }

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10;
    padding: .6rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }


.eyebrow {
    margin-bottom: 1.25rem;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green);
}

.lead {
    max-width: 38rem;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--text);
}

/* Header
   ========================================================================== */

.header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}
.brand-mark { flex: none; width: 1.6rem; height: 1.6rem; color: var(--green); }
.brand span { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }

.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); }
.site-nav a {
    position: relative;
    padding-block: .25rem;
    font-size: .9375rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons & links
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.6rem;
    font: inherit;
    font-size: .9375rem;
    font-weight: 500;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background .25s, color .25s, transform .25s var(--ease);
}
.button span { transition: transform .25s var(--ease); }
.button:hover { background: var(--green-dark); }
.button:hover span { transform: translateX(3px); }
.button:active { transform: translateY(1px); }

.button-light { color: var(--green-deep); background: #fff; }
.button-light:hover { color: var(--green-deep); background: var(--cream); }

.text-link {
    color: var(--green-dark);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Home
   ========================================================================== */

body.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
body.home .site-header .brand { display: none; }
body.home .header-inner { justify-content: flex-end; }
body.home .site-nav a { color: var(--white-70); }
body.home .site-nav a:hover,
body.home .site-nav a[aria-current="page"] { color: #fff; }

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 6rem 1.5rem 7rem;
    text-align: center;
    color: #fff;
    background: var(--green);
}
.hero :focus-visible { outline-color: #fff; }
.hero-coin { width: min(38vw, 168px); height: auto; color: #fff; }
.hero h1 {
    margin-top: 2.25rem;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    line-height: 1;
    color: #fff;
}
.hero-sub { max-width: 30rem; margin-top: 1.25rem; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--white-70); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.25rem; }

.button-ghost { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.button-ghost:hover { background: rgba(255, 255, 255, .1); }

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: -1.375rem;
    color: var(--white-70);
    border: 1px solid var(--white-20);
    border-radius: 50%;
    transition: color .2s, border-color .2s;
}
.scroll-cue:hover { color: #fff; border-color: var(--white-70); }
.scroll-cue svg {
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: nudge 2.4s 1s ease-in-out infinite;
}

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 7rem); scroll-margin-top: 1rem; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.section-head h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 4.5vw, 3rem); }
.band-white { background: #fff; border-block: 1px solid var(--line); }
.band-green { color: #fff; background: var(--green); }
.band-green h2, .band-green h3 { color: #fff; }
.band-green .eyebrow, .band-green p { color: var(--white-70); }

/* Flavors */
.flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
}
.flavor-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}
.flavor-art { display: grid; place-items: center; padding: 2.5rem 1.5rem 2rem; background: var(--tint); }
.flavor-art .bag {
    width: min(100%, 210px);
    height: auto;
    filter: drop-shadow(0 18px 22px rgba(22, 32, 26, .2));
    transition: transform .45s var(--ease);
}
.flavor-card:hover .bag { transform: translateY(-6px) rotate(-2deg); }
.flavor-body { padding: 1.5rem 1.6rem 1.75rem; }
.flavor-body h3 { display: flex; gap: .65rem; align-items: center; margin-bottom: .5rem; font-size: 1.45rem; }
.swatch { flex: none; width: .8rem; height: .8rem; border-radius: 50%; background: var(--swatch); }
.flavor-note {
    display: flex;
    gap: .75rem;
    align-items: center;
    max-width: none;
    margin-top: 2rem;
    font-size: .95rem;
    color: var(--muted);
}
.flavor-note svg {
    flex: none;
    width: 1.5rem;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ingredients */
.ingredients { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
    .ingredients { grid-template-columns: 4fr 3fr; }
    .ing-card.seasoning { grid-column: 1 / -1; }
}
.ing-card { padding: clamp(1.4rem, 3vw, 2rem); background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.ing-card h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.ing-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 1.5rem .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ing-list li {
    display: grid;
    gap: .7rem;
    align-content: start;
    justify-items: center;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: var(--ink);
}
.ing-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 4.75rem;
    height: 4.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
}
.ing-icon svg { width: 3.3rem; height: 3.3rem; }
.ing-card.seasoning { display: flex; gap: 1.25rem; align-items: center; }
.ing-card.seasoning h3 { margin-bottom: .35rem; }

/* Pop, hop, munch */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.step { padding-top: 1.5rem; border-top: 1px solid var(--white-20); }
.step .num { display: block; margin-bottom: 1.5rem; font-family: var(--serif); font-size: .95rem; color: var(--white-70); }
.step-word {
    display: block;
    margin-bottom: .6rem;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.cta { color: #fff; background: var(--green-dark); }
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 3rem;
    align-items: center;
    justify-content: space-between;
    padding-block: clamp(3.5rem, 8vw, 5rem);
}
.cta h2 { max-width: 22ch; font-size: clamp(1.6rem, 3.5vw, 2.25rem); color: #fff; }

/* Inner pages
   ========================================================================== */

.page { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(4rem, 10vw, 8rem); animation: rise .7s var(--ease) both; }
.page-header h1 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 6.5vw, 4.25rem); line-height: 1.04; }
.page > .page-header { max-width: 44rem; }

.values { margin-top: clamp(4rem, 9vw, 6rem); }
.values > .eyebrow { margin-bottom: 0; color: var(--muted); }
.value-list { margin: 0; }
.value-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: .5rem 3rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
}
.value-list > div:first-child { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.value-list dt { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.value-list dd { margin: 0; max-width: 36rem; }

.statement {
    margin: clamp(4rem, 9vw, 6rem) 0 0;
    padding-left: clamp(1.25rem, 3vw, 2rem);
    border-left: 2px solid var(--green);
}
.statement p {
    max-width: 24ch;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--green-dark);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5rem; }
}
.topic-list { margin: 2.25rem 0 0; padding: 0; list-style: none; }
.topic-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-block: .9rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.topic-list li:last-child { border-bottom: 1px solid var(--line); }
.topic-list li::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--green);
}

.form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(22, 32, 26, .04), 0 18px 40px -20px rgba(22, 32, 26, .18);
}
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form label {
    display: grid;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: #cfd4cb; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(59, 130, 73, .14);
}
.contact-form .button { justify-self: start; margin-top: .25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-radius: var(--radius); list-style: none; font-size: .9375rem; }
.notice.error { color: #8a2626; background: #fbeeee; border: 1px solid #f1d3d3; }

.sent { padding-block: 2rem; text-align: center; }
.sent svg {
    width: 3.25rem;
    margin-bottom: 1.25rem;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sent h2 { margin-bottom: .5rem; font-size: 2rem; }
.sent p { margin-bottom: 1.5rem; }

/* 404 */
.not-found { display: flex; flex-direction: column; align-items: center; text-align: center; }
.not-found .lead { margin-bottom: 2.5rem; }
.not-found h1 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 6vw, 3.75rem); }
.coin-small { width: 5rem; height: 5rem; margin-bottom: 2rem; color: var(--green); }

/* Footer
   ========================================================================== */

.site-footer { font-size: .9375rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: flex-start;
    justify-content: space-between;
    padding-block: 3rem 2.5rem;
}
.footer-brand p { margin-top: .75rem; max-width: 28ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.footer-nav a { color: var(--text); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--green-dark); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    justify-content: space-between;
    padding-block: 1.5rem 2rem;
    font-size: .8125rem;
    border-top: 1px solid var(--line);
}

body.home .site-footer { color: var(--white-70); background: var(--green-deep); border-top: 0; }
body.home .site-footer .brand { color: #fff; }
body.home .site-footer .brand-mark { color: #fff; }
body.home .footer-nav a { color: var(--white-70); }
body.home .footer-nav a:hover { color: #fff; }
body.home .footer-bottom { border-top-color: var(--white-20); }

/* Motion
   ========================================================================== */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Small screens
   ========================================================================== */

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .header-inner { gap: .75rem; padding-block: 1.25rem; }
    .site-nav { gap: 1rem; }
    .site-nav a { font-size: .875rem; }
    .value-list > div { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Logo options (testing.php)
   ========================================================================== */

.logo-page { max-width: 1160px; }
.logo-group { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.logo-group-head {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.logo-group-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.logo-group-head p { max-width: 34rem; color: var(--muted); font-size: .95rem; }

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}
.logo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.logo-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.logo-preview {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 2rem 2rem 4.5rem;
}
.logo-card.wide .logo-preview { aspect-ratio: auto; height: 280px; padding: 2.25rem; }
.logo-preview.on-green { background: var(--green); }
.logo-preview.on-cream { background: var(--cream); border-bottom: 1px solid var(--line); }
.logo-preview > svg { width: 100%; height: 100%; max-height: 210px; }
.logo-card.wide .logo-preview > svg { max-height: none; }

.logo-sizes {
    position: absolute;
    right: .9rem;
    bottom: .8rem;
    display: flex;
    align-items: flex-end;
    gap: .6rem;
    padding: .45rem .6rem;
    background: rgba(255, 255, 255, .14);
    border-radius: 10px;
}
.on-cream .logo-sizes { background: rgba(22, 32, 26, .05); }
.sz-64 { width: 40px; height: 40px; }
.sz-32 { width: 24px; height: 24px; }
.sz-16 { width: 16px; height: 16px; }

.logo-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .35rem .75rem;
    align-items: baseline;
    padding: 1.25rem 1.4rem 1.4rem;
}
.logo-num { font-family: var(--serif); font-size: .95rem; color: var(--muted); }
.logo-meta h3 { font-size: 1.25rem; }
.logo-level {
    padding: .15rem .6rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
}
.level-simple { color: var(--green-dark); background: #e7f3e9; }
.level-medium { color: #7a5a12; background: #f7efd9; }
.level-detailed { color: #7d2946; background: #f9e6ec; }
.logo-meta p { grid-column: 1 / -1; font-size: .9375rem; color: var(--text); }
.logo-grid.cols-2 .logo-preview { aspect-ratio: auto; height: 280px; }
