:root { --paper: #faf9f6; --ink: #292923; --muted: #686860; --line: #deded6; --olive: #596744; }
body { background: var(--paper) !important; color: var(--ink); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a, button, input, textarea { transition: color .15s, background-color .15s, border-color .15s; }
a:hover, button:hover { color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.recipe-page { padding-top: 4px; }
.recipe-back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.recipe-hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.recipe-intro { min-width: 0; }
.recipe-title { font-family: Newsreader, Georgia, serif; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; margin: 16px 0 22px; }
.recipe-taxonomy { display: flex; flex-wrap: wrap; gap: 12px; }
.recipe-taxonomy span { background: none; padding: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.recipe-description { color: #53534c; font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
.recipe-timing { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.recipe-timing > div { padding-right: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; text-align: left; }
.recipe-timing > div:last-child { border: 0; }
.recipe-timing .text-2xl { font-size: 16px; font-weight: 500; }
.recipe-timing .text-xs { color: var(--muted); margin-bottom: 5px; }
.recipe-actions { display: flex; gap: 20px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.recipe-actions a { text-decoration: underline; text-underline-offset: 4px; }
.recipe-actions details { position: relative; }
.recipe-actions summary { cursor: pointer; list-style: none; padding: 6px 10px; }
.recipe-actions details button { position: absolute; right: 0; top: 100%; background: var(--paper); padding: 12px 18px; border: 1px solid var(--line); white-space: nowrap; color: #9b3831; z-index: 2; }
.recipe-image { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 6px; }
.recipe-image-empty { display: flex; align-items: center; justify-content: center; background: #eeeee7; color: var(--muted); font-size: 13px; }
.recipe-photo > div > .flex { font-size: 12px; }
.recipe-photo button.text-emerald-700 { color: var(--muted); font-size: 12px; font-weight: 400; }
.recipe-hero > aside { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.recipe-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; padding-top: 36px; }
.recipe-page h2 { font-family: Newsreader, Georgia, serif; font-size: 34px; line-height: 1.2; font-weight: 500; margin-bottom: 18px; }
.recipe-ingredients > .flex { gap: 10px; margin-bottom: 20px; }
.recipe-ingredients > .flex > div { border-color: var(--line); border-radius: 4px; }
.recipe-ingredients > .flex > div:last-child { order: -1; }
.recipe-ingredients button { font-size: 12px; padding: 7px 10px; background: transparent; }
.recipe-ingredients button.bg-emerald-600 { background: var(--olive); color: white; }
.recipe-ingredients [x-ref="ingredientList"] > li:has(input) { display: flex; gap: 16px; padding: 12px 0; margin: 0; border-bottom: 1px solid #e9e9e2; line-height: 1.6; font-size: 14px; }
.ingredient-check { appearance: auto; accent-color: var(--olive); width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; cursor: pointer; }
.ingredient-check:checked + span { color: var(--muted); text-decoration: line-through; }
.recipe-ingredients strong { display: inline-block; min-width: 72px; font-weight: 600; margin-right: 6px; }
.recipe-method ol > li { margin-bottom: 30px; gap: 20px; }
.recipe-method li > .flex-1 { min-width: 0; }
.recipe-method p { font-size: 15px; line-height: 1.85; color: var(--ink); }
.recipe-step-number { font-family: Newsreader, Georgia, serif; color: var(--olive); font-size: 32px; line-height: 1.25; min-width: 36px; }
.recipe-highlight { display: inline-block; background: #e9ece2; color: #465239; border-radius: 20px; padding: 3px 11px; font-size: 12px; margin-right: 5px; }
.recipe-personal-note { padding: 14px 18px; border-left: 3px solid var(--olive); background: #efefe8; color: #4f5147; border-radius: 3px; font-size: 14px; line-height: 1.7; margin-bottom: 8px; white-space: pre-wrap; }
.recipe-page .bg-emerald-600 { background-color: var(--olive); }
.recipe-page .text-emerald-700 { color: var(--olive); }
.recipe-page textarea { background: var(--paper); border-color: var(--line); }
@media (max-width: 760px) {
 .recipe-hero, .recipe-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 .recipe-back { margin-bottom: 24px; }
 .recipe-title { font-size: 42px; }
 .recipe-hero > aside { grid-row: auto; }
 .recipe-body { padding-top: 28px; }
 .recipe-timing { gap: 16px; }
 .recipe-timing > div { padding-right: 16px; }
}
@media (max-width: 440px) {
 .recipe-title { font-size: 36px; }
}
@media print {
 .recipe-hero { grid-template-columns: 1fr 1fr; }
 .recipe-body { grid-template-columns: 1fr 2fr; }
 .recipe-method li { break-inside: avoid; }
}
/* Shared pages and controls */
.site-main { max-width: 1152px; margin: 0 auto; padding: 48px 32px 72px; }
.site-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1152px; min-height: 72px; margin: 0 auto; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-brand { font-family: Newsreader, Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.025em; color: var(--ink); flex-shrink: 0; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; }
.nav-links [aria-current="page"]:not(.ui-primary) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 8px; }
.nav-links button { cursor: pointer; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--paper); border: 1px solid var(--olive); }
.skip-link:focus { top: 12px; }
.site-main h1:not(.recipe-title) { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 46px; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); }
.site-main h2 { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.page-eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-size: 10px; font-weight: 500; margin-bottom: 12px; }
.page-description { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 12px 0 30px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-header .page-description { margin-bottom: 0; }
.ui-surface { background: var(--paper); }
.ui-soft, .hover\:ui-soft:hover { background: #efefe8; }
.ui-border { border-color: var(--line); }
.ui-primary { background: var(--olive); color: #fff; }
.ui-primary:hover, .hover\:ui-primary:hover { background: #465337; color: #fff; }
.ui-accent, .hover\:ui-accent:hover { color: var(--olive); }
.ui-secondary { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.ui-secondary:hover { border-color: var(--olive); background: #efefe8; }
.ui-danger { color: #93453d; }
.ui-danger:hover { color: #76342d; }
.ui-error-surface { background: #f4ece7; }
.ui-error-text { color: #853e35; }
.ui-error-border { border-color: #dfc8c1; }
.action-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; padding: 11px 18px; font-size: 13px; font-weight: 500; line-height: 1.5; text-align: center; }
.text-link { font-size: 13px; color: var(--olive); text-decoration: underline; text-underline-offset: 4px; }
.site-main input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]), .site-main textarea, .site-main select { background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px; font-family: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.site-main input::placeholder, .site-main textarea::placeholder { color: #83837a; }
.site-main input:focus, .site-main textarea:focus, .site-main select:focus { border-color: var(--olive); outline: 2px solid #59674435; outline-offset: 1px; box-shadow: none; }
.site-main input[type="checkbox"] { accent-color: var(--olive); }
.site-main input[type="file"] { max-width: 100%; font-size: 13px; color: var(--muted); }
.site-main input[type="file"]::file-selector-button { background: #efefe8; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; color: var(--ink); margin-right: 12px; cursor: pointer; }
.site-main button:disabled, .site-main fieldset:disabled button { opacity: .45; cursor: default; }
.site-main button:disabled:hover { filter: none; }
.site-main label { color: #4a4a43; line-height: 1.7; }
.site-main summary { color: var(--muted); font-size: 13px; }
.site-main [role="alert"] { font-size: 13px; line-height: 1.7; }
.focus\:ring-olive:focus, .focus-visible\:outline-olive:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; box-shadow: none; }
/* Recipe library */
.library-search { display: flex; gap: 12px; max-width: 560px; margin: 30px 0 36px; }
.library-search input { flex: 1; width: 100%; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.library-recipe { display: block; min-width: 0; }
.library-image { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 5px; }
.library-image-empty { display: flex; align-items: center; justify-content: center; background: #eeeee7; }
.library-image-empty span { font-family: Newsreader, Georgia, serif; font-size: 64px; color: #a1a692; }
.library-recipe-copy { padding: 18px 0 0; }
.library-recipe-copy .page-eyebrow { margin-bottom: 7px; }
.library-recipe h2 { font-size: 27px; line-height: 1.2; overflow-wrap: anywhere; }
.library-recipe:hover h2 { color: var(--olive); }
.library-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); margin-top: 12px; font-size: 12px; }
.library-meta span + span::before { content: '·'; margin-right: 12px; }
.empty-state { text-align: center; padding: 64px 20px; border-top: 1px solid var(--line); }
.empty-state h2 { font-size: 32px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; overflow-wrap: anywhere; }
/* Welcome and authentication */
.welcome-page { padding: 48px 0 0; }
.site-main .welcome-page h1 { font-size: clamp(48px, 6vw, 78px); line-height: 1.05; max-width: 780px; }
.welcome-description { max-width: 530px; color: var(--muted); font-size: 17px; line-height: 1.85; margin: 24px 0 30px; }
.welcome-actions { display: flex; gap: 24px; align-items: center; }
.welcome-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 32px; }
.feature-number { font-family: Newsreader, Georgia, serif; font-size: 24px; color: var(--olive); }
.welcome-features h2 { font-size: 27px; margin: 14px 0 10px; }
.welcome-features p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.auth-page { padding-top: 36px; }
.auth-page h1 { margin-bottom: 0; }
.auth-page .page-description { margin-bottom: 32px; }
.auth-form { border-top: 1px solid var(--line); padding-top: 28px; }
.auth-form button[type="submit"] { padding: 12px 16px; font-size: 14px; border-radius: 4px; }
.auth-form label { font-size: 12px; margin-bottom: 7px; }
.account-page { padding-top: 24px; }
.account-section { padding-top: 24px; border-top: 1px solid var(--line); }
.account-section h2 { font-size: 28px; }
.account-section li { padding: 12px 0; border-bottom: 1px solid #e9e9e2; margin: 0; }
.account-section p { overflow-wrap: anywhere; }
/* Import and editor */
.import-page > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 12px; margin-bottom: 30px; }
.import-form { padding-top: 26px; border-top: 1px solid var(--line); }
.source-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 28px; }
.source-tabs button { flex: 1; font-size: 13px; padding: 9px 14px; border-radius: 3px; background: transparent; color: var(--muted); }
.source-tabs button[aria-pressed="true"] { background: var(--olive); color: #fff; }
.import-form label { font-size: 12px; }
.import-form > button[type="submit"] { font-size: 14px; border-radius: 4px; }
.import-form p.text-sm { font-size: 12px; line-height: 1.8; }
.import-form template + div, .import-form .border { border-color: var(--line); }
.import-status-page { padding-top: 24px; }
.import-status-page > p { line-height: 1.8; }
.status-panel { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.status-panel [role="status"]::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--olive); border-radius: 50%; margin-right: 10px; }
.editor-page > p { line-height: 1.8; }
.editor-form { border-top: 1px solid var(--line); padding: 28px 0 0; }
.editor-form > section { padding-top: 26px; border-top: 1px solid var(--line); }
.editor-form #servings { border: 0; padding-top: 0; }
.editor-form h2 { font-size: 32px; margin-bottom: 18px; }
.editor-row { padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.editor-row-actions { flex-wrap: wrap; gap: 12px; font-size: 12px; }
.editor-row-actions > span { margin-right: auto; color: var(--muted); font-weight: 500; }
.editor-row-actions button[aria-label] { padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; }
.editor-form > details { border-color: var(--line); border-radius: 4px; }
.editor-form label { font-size: 12px; }
.editor-footer { border-top: 1px solid var(--line); padding: 24px 0; background: var(--paper); flex-wrap: wrap; }
@media (max-width: 800px) {
 .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .nav-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
 .nav-links { gap: 22px; }
 .welcome-features { gap: 24px; }
}
@media (max-width: 600px) {
 .site-main { padding: 30px 20px 48px; }
 .nav-inner { padding-left: 20px; padding-right: 20px; }
 .site-brand { font-size: 25px; }
 .nav-links { gap: 18px; font-size: 12px; }
 .site-main h1:not(.recipe-title) { font-size: 38px; }
 .page-header { align-items: flex-start; flex-direction: column; gap: 18px; }
 .library-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .library-search { margin: 26px 0 30px; gap: 8px; }
 .library-search button { padding: 10px 12px; }
 .welcome-page { padding-top: 24px; }
 .site-main .welcome-page h1 { font-size: 50px; }
 .welcome-description { font-size: 15px; }
 .welcome-features { grid-template-columns: minmax(0, 1fr); margin-top: 48px; gap: 32px; }
 .auth-page, .account-page, .import-status-page { padding-top: 12px; }
 .source-tabs button { padding: 9px 10px; }
 .editor-row-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .site-nav, .skip-link { display: none; } .site-main { padding: 0; } }

.recipe-photo dialog { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 48px #29292320; }
.recipe-photo dialog h2 { font-size: 28px; }
.recipe-page [role="alert"] { color: #853e35; }
@media print { .recipe-back, .recipe-actions, .recipe-photo button, .recipe-page button { display: none; } }

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher select {
    max-width: 8rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    background: transparent;
    color: inherit;
    font: inherit;
}
