
:root{--forest:#193f34;--green:#355e45;--ink:#233e32;--muted:#58675e;--paper:#f6f5ef;--white:#fffefa;--sage:#e8eddf;--lime:#d8e4ac;--line:#d7dcd0;--error:#8b3e2c;--serif:'Instrument Serif',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:25px}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.dialog-open{overflow:hidden}
h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:400}
h1,h2{font-family:var(--serif);line-height:1.04;letter-spacing:-.025em}
em{font-family:var(--serif);font-weight:400;color:var(--green)}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}button:disabled{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #916b2c;outline-offset:4px}
textarea,input,select{border:1px solid #bfc9ba;border-radius:3px;background:var(--white)}
input,select{height:48px;padding:10px 12px;min-width:0}
textarea{display:block;resize:vertical;width:100%;padding:12px 14px;line-height:1.6;min-height:82px}
input::placeholder,textarea::placeholder{color:#778076;opacity:1}
[hidden]{display:none!important}
::selection{background:var(--lime);color:var(--forest)}
.shell{width:min(1200px,calc(100% - 80px));margin-inline:auto}
.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:.8125rem;font-weight:600;color:var(--green);line-height:1.5;margin-bottom:16px}
.small-copy{font-size:.875rem;color:var(--muted);line-height:1.65}
.button{border:1px solid var(--forest);background:var(--forest);color:var(--white);border-radius:3px;min-height:50px;padding:12px 21px;display:inline-flex;align-items:center;justify-content:center;font-weight:500;font-size:.9375rem;line-height:1.5;transition:background .18s}
.button:hover:not(:disabled){background:#2c5845}
.button-outline{background:transparent;color:var(--forest)}
.button-outline:hover:not(:disabled){background:var(--sage)}
.button-small{min-height:44px;padding:10px 16px;font-size:.875rem}
.text-link{border:0;border-bottom:1px solid var(--green);padding:0 0 3px;background:transparent;font-size:.875rem;font-weight:500;line-height:1.6;display:inline-block;width:fit-content}
.text-link:hover{color:#805638}
.quiet-button{border:0;background:none;padding:7px 0;font-size:.875rem;text-decoration:underline;text-underline-offset:4px;line-height:1.6}
.skip-link{position:fixed;top:-70px;left:20px;padding:12px 20px;color:white;background:var(--forest);z-index:100}
.skip-link:focus{top:15px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:-1px;padding:0;border:0}
.demo-strip{background:var(--forest);color:#dce5d4}
.demo-strip .shell{display:flex;justify-content:space-between;gap:20px;padding-block:9px;font-size:.8125rem}
.site-header{border-bottom:1px solid var(--line);background:var(--white)}
.header-inner{display:flex;justify-content:space-between;align-items:center;gap:30px;min-height:92px}
.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}
.brand svg{width:39px;height:41px}
.brand>span{font-family:var(--serif);font-size:1.85rem;line-height:1;letter-spacing:-.02em}
.brand small{display:block;font-size:1.17rem;margin-top:5px}
.header-inner nav{display:flex;gap:28px;font-size:.875rem}
.header-inner nav a:hover{text-decoration:underline;text-underline-offset:5px}
.log-intro{display:grid;grid-template-columns:1.25fr 1fr;gap:100px;align-items:center;padding-block:47px 45px}
.log-intro h1{font-size:clamp(3.2rem,5vw,4.5rem)}
.intro-copy{max-width:420px}
.journal-label{display:block;font-size:1rem;font-weight:600;margin-bottom:13px}
.intro-copy>p:not(.small-copy){font-size:1.0625rem;color:var(--muted);line-height:1.75}
.intro-copy .small-copy{margin-top:16px}
.log-toolbar{display:flex;gap:25px;align-items:center;padding:22px 26px;background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.week-setting{position:relative}
.week-setting>label{display:block;font-size:.875rem;font-weight:500;margin-bottom:7px}
.week-setting>input{background:var(--white);min-width:175px;max-width:210px;font-size:1rem}
.week-summary{padding-top:25px}
.week-summary>p{font-size:.9375rem;font-weight:500}
.week-summary>span{display:block;margin-top:3px}
.save-actions{margin-left:auto;display:flex;gap:10px}
.save-line{display:flex;gap:20px;align-items:baseline;justify-content:space-between;font-size:.8125rem;color:var(--muted);padding:12px 3px}
#log-status{color:var(--green)}
.log-utilities{display:flex;gap:25px;justify-content:space-between;align-items:center;padding:12px 0 29px}
.log-utilities>div{display:flex;gap:25px;align-items:center;flex-wrap:wrap}
.log-utilities .quiet-button{color:var(--muted)}
.notice{padding:17px 20px;border:1px solid var(--line);background:var(--sage);font-size:.9375rem;margin-block:18px;line-height:1.7}
.notice a{text-decoration:underline}
.attention{border-color:#dfc89b;background:#fff7e8;color:#674b24}
.field-error{display:block;font-size:.8125rem;color:var(--error);margin-top:8px;max-width:230px}
.journal-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:55px;align-items:start;padding-bottom:65px}
.journal{min-width:0;border:1px solid var(--line);background:#fffefa}
.journal-topline{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 25px 20px}
.journal-topline h2{font-size:1.95rem}
.journal-topline>span{font-size:.8125rem;color:var(--muted)}
.day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper)}
.day-tab{position:relative;display:flex;flex-direction:column;align-items:center;border:0;border-bottom:3px solid transparent;background:transparent;padding:14px 4px 10px;line-height:1.35;color:var(--muted);min-width:0}
.day-tab+.day-tab{border-left:1px solid var(--line)}
.day-tab:hover{background:var(--sage)}
.day-tab[aria-selected=true]{background:var(--forest);color:var(--white);border-bottom-color:var(--lime)}
.day-name{font-size:.875rem}
.day-date{font-family:var(--serif);font-size:1.95rem;margin:2px 0}
.day-count{font-size:.75rem;white-space:nowrap}
.day-tab.is-reviewed:not([aria-selected=true]){background:var(--sage);color:var(--forest)}
.day-tab.is-reviewed .day-count{font-weight:600}
.day-panel{padding:27px 25px 20px}
.day-panel:focus{outline:none}
.day-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}
.day-heading .eyebrow{font-size:.75rem;margin-bottom:6px}
.day-heading h3{font-family:var(--serif);font-size:2.3rem;line-height:1.12}
.day-heading h3:focus{outline:none}
.empty-day{padding:25px 22px 30px;background:var(--paper);text-align:center;border:1px dashed #c1cab7}
.empty-day>svg{width:65px;height:59px;color:#607d4c;margin-bottom:12px}
.empty-day h4{font-family:var(--serif);font-size:1.8rem}
.empty-day p{max-width:340px;margin:9px auto 16px;font-size:.9375rem;color:var(--muted)}
.entry-list{display:grid;gap:18px}
.food-entry{padding:18px 21px 22px;border:1px solid var(--line);background:var(--paper);border-radius:3px}
.entry-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.entry-heading h4{font-size:.875rem;font-weight:600;letter-spacing:.03em}
.remove-entry{font-size:.8125rem;color:var(--muted);padding:0}
.entry-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.field>label{display:block;font-size:.875rem;font-weight:500;margin-bottom:7px}
.field>label>span,.day-notes>label>span{font-weight:400;color:var(--muted);font-size:.8125rem;margin-left:4px}
.field input,.field select{width:100%;background:var(--white)}
.select-wrap{position:relative}
.select-wrap::after{content:'';width:7px;height:7px;border-right:1.5px solid var(--green);border-bottom:1.5px solid var(--green);transform:rotate(45deg);position:absolute;right:16px;top:19px;pointer-events:none}
select{appearance:none;-webkit-appearance:none;padding-right:38px}
.food-field{margin-bottom:17px}
.food-entry textarea{background:var(--white)}
.day-notes{margin-top:27px}
.day-notes>label{display:block;font-size:.875rem;font-weight:500;margin-bottom:9px}
.day-review{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:23px;padding:18px 0 22px;border-bottom:1px solid var(--line)}
.day-review>label{display:flex;gap:11px;align-items:flex-start;cursor:pointer;font-size:.9375rem}
.day-review input{width:18px;height:18px;margin:4px 0 0;accent-color:var(--forest);flex-shrink:0;padding:0}
.day-review small{display:block;color:var(--muted);font-size:.8125rem;margin-top:3px}
.day-review>span{font-size:.8125rem;color:var(--muted);white-space:nowrap}
.day-pagination{display:flex;justify-content:space-between;gap:15px;align-items:center;padding-top:15px}
.day-pagination>span{font-size:.8125rem;color:var(--muted)}
.entry-limit{margin-top:15px}
.journal-aside{padding-top:14px}
.guide-block h2{font-size:2.15rem}
.guide-block ul{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:16px}
.guide-block li{position:relative;padding-left:18px;font-size:.9375rem;line-height:1.65;color:var(--muted)}
.guide-block li::before{content:'';position:absolute;left:0;top:.65em;width:5px;height:5px;border-radius:50%;background:#71875f}
.keep-block{margin-top:30px;padding:25px 22px;background:var(--sage)}
.keep-block>svg{width:34px;height:34px;color:var(--green);margin-bottom:9px}
.keep-block h3{font-family:var(--serif);font-size:1.7rem;line-height:1.15}
.keep-block p{font-size:.875rem;color:var(--muted);line-height:1.75;margin:12px 0 17px}
.storage-details{font-size:.875rem;margin-top:27px;border-bottom:1px solid var(--line);padding-bottom:20px}
.storage-details summary{font-weight:500;cursor:pointer;line-height:1.65}
.storage-details p{margin-top:13px;color:var(--muted);line-height:1.75}
.date-hint{margin-top:20px;font-size:.8125rem}
.log-footer{background:var(--forest);color:var(--white);padding-block:30px}
.log-footer>.shell{display:flex;justify-content:space-between;align-items:center;gap:50px}
.log-footer strong{font-family:var(--serif);font-weight:400;font-size:1.8rem}
.log-footer p{font-size:.875rem;max-width:650px;color:#d4e0ce;margin-top:8px}
.log-footer a{font-size:1.3rem;white-space:nowrap;text-decoration:underline;text-underline-offset:5px}
dialog{border:0;max-height:92svh;overflow:auto;background:var(--white);color:var(--ink);padding:40px;border-radius:4px;width:min(560px,calc(100% - 28px));box-shadow:0 20px 80px #0d251b33}
dialog::backdrop{background:rgba(15,35,25,.6);backdrop-filter:blur(4px)}
.dialog-close{position:absolute;right:12px;top:10px;border:0;border-radius:50%;width:38px;height:38px;line-height:1;background:var(--paper);font-size:1.8rem}
.dialog-top{position:sticky;top:36px;height:0;z-index:2}.dialog-top .dialog-close{top:-30px;right:-28px}
dialog h2{font-size:3rem}
dialog>p:not(.eyebrow):not(.small-copy){color:var(--muted);margin-top:18px;font-size:1rem;line-height:1.7}
.export-option{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}
.export-option h3{font-family:var(--serif);font-size:1.7rem}
.export-option p{font-size:.9375rem;color:var(--muted);line-height:1.7;margin-top:7px}
.export-option button{margin-top:16px;width:100%}
.save-dialog>.small-copy{margin-top:21px;font-size:.8125rem}
.save-dialog .export-message{font-size:.875rem;color:var(--green)}
.confirm-dialog h2{font-size:2.5rem}
.confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:28px}
.confirm-actions .button{font-size:.875rem;padding:11px 15px}
.print-log{display:none}
@media(max-width:1050px){
 .shell{width:calc(100% - 48px)}.log-intro{gap:55px}.journal-layout{grid-template-columns:minmax(0,1fr) 230px;gap:30px}.log-toolbar{gap:20px;padding-inline:20px}.week-summary{max-width:200px}.save-actions{flex-direction:column;gap:8px}.save-actions .button{min-height:40px;padding:8px 17px}.day-heading{align-items:flex-start;flex-direction:column;gap:14px}.day-heading h3{font-size:2.1rem}.journal-topline{align-items:flex-start;gap:10px;flex-direction:column}.day-review{align-items:flex-start;flex-direction:column;gap:12px}
}
@media(max-width:780px){
 .journal-layout{grid-template-columns:1fr;gap:30px}.journal-aside{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding-top:0}.keep-block{margin-top:0}.storage-details{margin-top:0}.date-hint{margin-top:0}.log-intro{gap:30px;grid-template-columns:1fr 1fr}.log-intro h1{font-size:3.4rem}.intro-copy>p:not(.small-copy){font-size:1rem}.log-toolbar{flex-wrap:wrap}.week-summary{max-width:none;flex:1}.save-actions{width:100%;margin-left:0;flex-direction:row}.save-actions .button{flex:1;min-height:46px}.save-line{align-items:flex-start;flex-direction:column;gap:4px;padding-block:13px}.day-heading{flex-direction:row;align-items:center;gap:20px}.journal-topline{flex-direction:row;align-items:center}.day-review{flex-direction:row;align-items:center}.log-utilities{gap:15px}.log-utilities>div{gap:16px}.log-footer>.shell{gap:30px}
}
@media(max-width:520px){
 .shell{width:calc(100% - 32px)}.demo-strip .shell{font-size:.75rem;justify-content:center}.demo-strip .shell>span+span{display:none}.header-inner{min-height:92px;gap:20px}.brand svg{width:32px}.brand>span{font-size:1.65rem}.brand small{font-size:1.05rem}.header-inner nav{flex-direction:column;gap:9px;align-items:flex-end;font-size:.8125rem}.log-intro{display:block;padding-block:33px 31px}.log-intro h1{font-size:3.6rem}.log-intro .eyebrow{font-size:.75rem;margin-bottom:12px}.intro-copy{max-width:none;margin-top:24px}.journal-label{font-size:.9375rem;margin-bottom:8px}.intro-copy .small-copy{margin-top:10px}.log-toolbar{padding:18px 15px;gap:15px}.week-setting>input{min-width:155px;width:155px}.week-summary{padding-top:25px}.week-summary>p{font-size:.8125rem;line-height:1.5}.week-summary>.small-copy{font-size:.75rem}.save-actions .button{padding-inline:12px;font-size:.875rem}.save-line{font-size:.75rem}.log-utilities{align-items:flex-start;flex-direction:column;padding-top:8px;padding-bottom:23px;gap:14px}.log-utilities>div{flex-wrap:wrap;gap:14px 22px}.log-utilities .text-link,.log-utilities .quiet-button{font-size:.875rem}.journal-topline{padding:19px 16px;gap:10px}.journal-topline h2{font-size:1.65rem}.journal-topline>span{font-size:.75rem;white-space:nowrap}.day-tab{padding-block:12px 9px}.day-name{font-size:.8125rem}.day-date{font-size:1.7rem}.day-count{font-size:.75rem}.day-panel{padding:22px 15px 17px}.day-heading{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:20px}.day-heading h3{font-size:2.2rem}.day-heading .button{width:100%}.food-entry{padding:16px 14px 19px}.entry-meta{gap:12px}.field>label{font-size:.875rem}.field input,.field select{font-size:1rem}.field>label>span{display:block;font-size:.75rem;margin-left:0}.entry-meta label{min-height:44px}.entry-heading{gap:12px}.remove-entry{font-size:.875rem}.food-field{margin-bottom:15px}.empty-day{padding:25px 18px}.empty-day h4{font-size:1.7rem}.empty-day p{font-size:.9375rem}.day-notes>label{font-size:.875rem}.day-notes>label>span{font-size:.75rem}.day-review{flex-direction:column;align-items:flex-start;gap:11px}.day-pagination{gap:10px}.day-pagination .quiet-button{font-size:.8125rem}.day-pagination>span{font-size:.75rem}.journal-aside{display:block}.guide-block{padding:6px 5px 0}.guide-block ul{gap:12px;margin-top:18px}.guide-block h2{font-size:2.1rem}.keep-block{margin-top:25px;padding:22px}.storage-details{margin-top:25px}.date-hint{margin-top:18px}.journal-layout{padding-bottom:40px}.log-footer>.shell{display:block}.log-footer a{display:inline-block;margin-top:20px}.log-footer strong{font-size:1.7rem}.log-footer p{font-size:.875rem}
 dialog{padding:35px 24px 26px;max-height:94svh}dialog h2{font-size:2.8rem}.confirm-dialog h2{font-size:2.3rem}.confirm-actions{flex-direction:column-reverse}.export-option p{font-size:.9375rem}.dialog-top{top:30px}.dialog-top .dialog-close{top:-22px;right:-13px}
}
@media(max-width:360px){.shell{width:calc(100% - 24px)}.week-summary{flex-basis:100%;padding-top:0}.week-summary>p{font-size:.875rem}.log-intro h1{font-size:3.2rem}.journal-topline{flex-direction:column;align-items:flex-start}.day-count{font-size:.75rem}.entry-meta{grid-template-columns:1fr}.entry-meta label{min-height:0}.field>label>span{display:inline;margin-left:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
html.motion-off{scroll-behavior:auto}.motion-off *{transition:none!important}
@page{size:Letter;margin:.6in}
@media print{
 body{font:10.5pt Arial,sans-serif;color:#17251c;background:white;line-height:1.5}
 .screen-content,dialog,dialog::backdrop{display:none!important}
 .print-log{display:block!important}
 .print-day{break-after:page}
 .print-day:last-child{break-after:auto}
 .print-header{border-bottom:1.2pt solid #193f34;padding-bottom:12pt;margin-bottom:18pt}
 .print-header>p:first-child{font-size:10pt;font-weight:bold;letter-spacing:.08em;text-transform:uppercase}
 .print-header h1{font:27pt Georgia,serif;line-height:1.15;margin:8pt 0}
 .print-header .print-meta{font-size:10pt;color:#37473b}
 .print-name{margin-top:14pt;display:flex;gap:12pt;align-items:baseline}
 .print-name span:last-child{display:inline-block;width:220pt;border-bottom:.6pt solid #7a8479}
 .print-day h2{font:21pt Georgia,serif;line-height:1.2;margin-bottom:7pt}
 .print-day .review-line{font-size:9pt;color:#4e5b51;margin-bottom:15pt}
 .print-table{border-collapse:collapse;width:100%;table-layout:fixed;margin-bottom:18pt}
 .print-table th,.print-table td{border:1px solid #bdc7ba;text-align:left;vertical-align:top;padding:8pt;overflow-wrap:anywhere;white-space:pre-wrap}
 .print-table th{font-size:9pt;font-weight:bold;background:#edf1e8}
 .print-table th:nth-child(1){width:21%}.print-table th:nth-child(3){width:24%}
 .print-table tr{break-inside:avoid}
 .print-empty{border:1px solid #bdc7ba;min-height:110pt;padding:14pt;margin-bottom:20pt;color:#4e5b51}
 .print-notes{border-top:1px solid #bdc7ba;padding-top:12pt;break-inside:avoid}
 .print-notes h3{font:12pt Arial,sans-serif;font-weight:bold;margin-bottom:7pt}
 .print-notes p{white-space:pre-wrap;overflow-wrap:anywhere}
 .print-footnote{font-size:8.5pt;color:#5c675c;margin-top:20pt}
}

