:root {
  color-scheme: light; --ink: #242b20; --green: #35432c; --paper: #f8f5e9;
  --sheet: #fffdf5; --gold: #a95816; --muted: #565e4d; --line: #c9cbb9;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; }
button { color: inherit; }
button:disabled { opacity: .58; cursor: wait; }
:focus-visible { outline: 3px solid #a64d13; outline-offset: 3px; }
.wrap { width: min(1170px, calc(100% - clamp(2.25rem, 8vw, 7rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: .7rem; top: -5rem; background: var(--sheet); padding: .75rem; }
.skip:focus { top: .7rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.masthead { background: var(--sheet); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 70px; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand img { width: 40px; height: 40px; padding: .32rem; background: var(--green); border-radius: 50%; }
.section-name { border-left: 1px solid var(--line); padding-left: 1.25rem; font-size: .84rem; color: var(--muted); }
.masthead nav { margin-left: auto; }
.quiet, .text-link { background: none; border: 0; padding: .5rem 0; font-size: .9rem; text-decoration: underline; text-underline-offset: .21em; font-weight: 650; }
header h1, h1, h2, h3, p, figure, blockquote { margin: 0; }
.cover { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; margin-block: clamp(1.5rem, 4vw, 3.35rem); background: var(--green); color: var(--sheet); overflow: hidden; border-radius: 4px; }
.cover-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 5.3vw, 5rem); }
.cover h1 { font-size: clamp(4rem, 7.6vw, 7rem); line-height: .89; letter-spacing: -.08em; }
.cover em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.08em; color: #f7d393; }
.cover p { max-width: 32ch; margin-top: 1.6rem; font-size: clamp(1.02rem, 1.6vw, 1.24rem); line-height: 1.55; color: #f0f0db; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .72rem; }
.cover .actions { margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 44px; padding: .7rem 1.05rem; border-radius: 5px; border: 1px solid transparent; text-decoration: none; font-weight: 740; font-size: .94rem; line-height: 1.2; }
.button.dark { background: var(--green); color: var(--sheet); }
.button.paper { background: var(--sheet); color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(.94); }
.cover .dark { background: #f6d18e; color: #292d1d; }
.cover .paper { background: transparent; border-color: #acb49b; color: var(--sheet); }
.cover-photo { position: relative; min-height: clamp(310px, 36vw, 450px); background: #575647; }
.cover-photo img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 54%; }
.cover-photo figcaption { position: absolute; padding: 2.8rem 1.2rem 1rem; bottom: 0; left: 0; right: 0; color: white; font-weight: 650; font-size: .82rem; background: linear-gradient(transparent, rgba(20, 24, 16, .77)); }
.cover-photo figcaption span { opacity: .65; padding: 0 .26rem; }
.sample-spread { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(2rem, 7vw, 7rem); border-top: 2px solid var(--green); padding: clamp(1.7rem, 4vw, 3.2rem) 0 clamp(2.5rem, 6vw, 5.5rem); }
.eyebrow, .example-copy h3, .entry-kind, .quote-label { margin: 0 0 .7rem; font-weight: 760; font-size: .72rem; line-height: 1.35; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow, .entry-kind { color: var(--gold); }
.sample-spread h2, .workspace-heading h1 { font-size: clamp(2.5rem, 5.9vw, 5.2rem); line-height: .98; letter-spacing: -.06em; overflow-wrap: anywhere; }
.example-copy p, .example-copy blockquote { max-width: 46ch; line-height: 1.55; }
.example-copy h3 { color: var(--green); margin-top: .3rem; }
.example-copy h3:nth-of-type(2) { margin-top: 1.4rem; }
.example-copy blockquote, .entry-quote blockquote, #reflection-prompt { font: italic 1.33rem/1.43 Georgia, 'Times New Roman', serif; }
.footer { margin-top: 1rem; padding-block: 1.3rem; background: var(--green); color: var(--sheet); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; font-weight: 650; }
.footer a { text-underline-offset: .17rem; }
.notice, .sample-bar { margin-top: 1rem; background: #eee9d2; padding: .85rem 1rem; border-left: 3px solid #af711d; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.sample-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.sample-bar label, #profile-control { display: flex; align-items: center; gap: .6rem; font-size: .88rem; white-space: nowrap; font-weight: 650; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; padding: clamp(2.3rem, 6vw, 4.6rem) 0 1rem; }
.workspace-heading h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
#profile-list { max-width: min(16rem, 65vw); }
.audience { color: var(--muted); line-height: 1.5; margin-bottom: 1.5rem; }
.tools { display: flex; align-items: center; justify-content: space-between; gap: .85rem; flex-wrap: wrap; padding-block: 1rem; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: 0; border: 0; margin: 0; min-width: 0; }
.filters button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 5px; min-height: 40px; padding: .46rem .65rem; font-size: .9rem; font-weight: 680; }
.filters button[aria-pressed="true"] { background: #e0e5d2; color: var(--green); border-color: #bac1a7; }
.timeline { margin: 0; }
.moment { display: grid; grid-template-columns: minmax(5.5rem, .23fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.date-band { color: var(--muted); font-size: .91rem; line-height: 1.5; font-weight: 650; }
.moment .entry-kind { margin-bottom: .35rem; }
.moment h3 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); line-height: 1.13; letter-spacing: -.045em; }
.entry-text, .entry-quote { max-width: 62ch; color: var(--ink); margin-top: .85rem; line-height: 1.6; }
.entry-text, .entry-quote blockquote, .moment h3 { overflow-wrap: anywhere; white-space: pre-wrap; }
.entry-quote { border-left: 3px solid #cb9955; padding-left: 1rem; }
.quote-label { color: var(--muted); margin-bottom: .3rem; letter-spacing: .08em; font-size: .68rem; }
.entry-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .86rem; color: var(--muted); }
.entry-meta .quiet { font-size: .82rem; padding: .4rem 0; }
.empty { padding: 2rem 0; line-height: 1.6; color: var(--muted); }
.reflections { margin-top: 1.8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); }
.reflections summary { display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 1.25rem; font-weight: 740; list-style: none; }
.reflections summary::-webkit-details-marker { display: none; }
.reflections[open] summary span { transform: rotate(45deg); }
.reflection-inner { padding: 0 1.25rem 1.25rem; max-width: 60ch; }
.reflection-inner > p { color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
.reflection-inner label, form label { display: block; font-weight: 680; }
.reflection-inner select { width: 100%; margin-top: .3rem; }
#reflection-prompt { margin: 1rem 0; }
#copy-result:empty, .form-status:empty { display: none; }
#copy-result { margin-top: .5rem; }
.workspace-footer { margin: 1.25rem 0 2.5rem; }
.workspace-footer a { display: inline-block; margin-right: 1.1rem; }
dialog { color: var(--ink); padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid #939a82; border-radius: 8px; background: var(--sheet); width: min(29rem, calc(100% - 2rem)); max-height: 88svh; overflow: auto; box-shadow: 0 1.4rem 5rem #14180f44; }
dialog::backdrop { background: #1c2319b0; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.dialog-header h2 { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.09; letter-spacing: -.05em; }
.dialog-header button { margin: -.4rem -.4rem 0 0; border: 0; background: transparent; min-width: 36px; min-height: 36px; font-size: 1.6rem; font-weight: 400; }
dialog p { margin: 1rem 0; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
dialog form { display: grid; gap: .9rem; }
form .button { justify-self: start; }
dialog label, .reflection-inner label { font-size: .9rem; line-height: 1.4; }
input, textarea, select { border: 1px solid #9ca38d; border-radius: 4px; background: var(--sheet); color: var(--ink); min-height: 42px; padding: .55rem .65rem; max-width: 100%; }
input, textarea { width: 100%; }
textarea { resize: vertical; }
form label input, form label textarea, form label select { display: block; width: 100%; margin-top: .25rem; }
form label + input { margin-top: -.5rem; }
.optional { font-weight: 430; color: var(--muted); }
.two-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
.access-help { font-size: .9rem; margin-bottom: 0; }
@media (max-width: 360px) { .two-fields { grid-template-columns: 1fr; } }
#access-dialog > .button { margin-top: .9rem; }
.form-status { margin: 0; color: #83480f; font-size: .9rem; }
#access-state { margin-block: .9rem; }
@media (max-width: 720px) {
  .cover { grid-template-columns: 1fr; }
  .cover-text { padding: 2rem 1.7rem; }
  .cover h1 { font-size: clamp(3.85rem, 12vw, 5.7rem); }
  .cover-photo { min-height: clamp(155px, 36vw, 250px); }
  .sample-spread { grid-template-columns: 1fr; gap: 1.4rem; }
  .sample-spread h2 br { display: none; }
  .sample-spread h2 { max-width: 10ch; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .sample-bar { align-items: flex-start; flex-direction: column; }
  .section-name { display: none; }
  .moment { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .date-band { font-size: .8rem; }
}
@media (max-width: 420px) {
  .cover .actions { gap: .5rem; }
  .cover .button { padding: .72rem .78rem; }
  .button { font-size: .9rem; }
  .filters { gap: 0; }
  .filters button { padding-inline: .5rem; font-size: .83rem; }
  .footer .wrap { font-size: .79rem; }
  input, textarea, select { font-size: 16px; }
}
#lookback-content { padding: 0 1.25rem 1.25rem; }
#lookback-content .empty { padding: 0; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.compare-grid label { display: block; color: var(--muted); font-size: .84rem; font-weight: 650; }
.compare-grid select { width: 100%; margin-top: .3rem; }
.compare-grid .moment { display: block; padding: .9rem 0 0; border: 0; }
.compare-grid h3 { font-size: 1.25rem; }
.compare-grid .date-band { margin-bottom: .5rem; }
.sharing-note { margin: 0; font-size: .85rem; }
@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }
