:root {
  --page: #f3efe7;
  --surface: #fffdf8;
  --ink: #242321;
  --muted: #746f67;
  --line: #d8d0c2;
  --accent: #c45535;
  --dark: #202a29;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 "DM Sans", sans-serif; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -50px; padding: 8px 12px; background: var(--ink); color: var(--surface); z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav-row, .footer-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font: 600 18px "Fraunces", serif; text-decoration: none; }
nav { display: flex; gap: 25px; }
nav a, .footer-row a { text-underline-offset: 5px; }
.opening { display: grid; grid-template-columns: 1fr .9fr; gap: 8vw; align-items: center; padding-block: 105px; }
.intro-copy { max-width: 630px; }
.eyebrow { margin: 0 0 15px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Fraunces", serif; font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
.lede { max-width: 570px; margin: 27px 0; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.actions { display: flex; align-items: center; gap: 22px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid var(--accent); background: var(--accent); color: var(--surface); font-weight: 600; text-decoration: none; }
.button:hover { background: var(--dark); border-color: var(--dark); }
.copy-button { border: 0; border-bottom: 1px solid var(--ink); padding: 6px 0; background: none; cursor: pointer; }
.copy-status { min-height: 24px; margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.notebook-art { position: relative; display: flex; width: min(100%, 470px); aspect-ratio: 1.22; margin-left: auto; transform: rotate(-2deg); }
.page { position: relative; flex: 1; padding: 28px; background: var(--surface); box-shadow: 0 8px 18px rgb(36 35 33 / 8%); }
.page-left { border-right: 1px solid var(--line); }
.initial { position: relative; z-index: 1; display: block; font: 700 clamp(6rem, 14vw, 10rem)/.8 "Fraunces", serif; color: var(--dark); }
.rule { display: block; height: 1px; margin-top: 25px; background: var(--line); }
.sun { position: absolute; right: 24px; top: 28px; width: 38px; height: 38px; border: 5px solid var(--accent); border-radius: 50%; }
.bookmark { position: absolute; top: -10px; right: 19%; width: 25px; height: 100px; background: var(--accent); }
.bookmark::after { content: ""; position: absolute; bottom: 0; border-right: 13px solid transparent; border-left: 12px solid transparent; border-bottom: 12px solid var(--surface); }
.work, .notebook { padding-block: 100px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 40px; }
.section-heading > p { max-width: 370px; margin: 0; color: var(--muted); }
.work-list { border-top: 1px solid var(--line); }
.work-item { display: grid; grid-template-columns: 40px minmax(230px, .75fr) 1.25fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.item-number { color: var(--muted); font: 600 12px "DM Sans", sans-serif; }
.work-mark { min-height: 210px; background: #e5ded1; position: relative; overflow: hidden; }
.mark-orbit i { position: absolute; width: 130px; height: 130px; left: 24%; top: 22%; border: 3px solid var(--dark); border-radius: 50%; }
.mark-orbit b { position: absolute; width: 18px; height: 18px; left: 54%; top: 18%; border-radius: 50%; background: var(--accent); }
.mark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 35px; align-content: center; }
.mark-grid i { display: block; aspect-ratio: 1; background: var(--dark); }
.mark-grid i:nth-child(2), .mark-grid i:nth-child(5) { background: var(--accent); }
.mark-tide span { position: absolute; width: 150%; height: 100px; left: -20%; top: 35%; border: 3px solid var(--dark); border-left: 0; border-right: 0; border-radius: 50%; transform: rotate(-12deg); }
.work-item h3 { margin-bottom: 14px; }
.work-item p:not(.eyebrow) { max-width: 520px; }
.work-item ul { display: flex; gap: 15px; padding: 0; margin: 21px 0 0; list-style: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.work-item li + li::before { content: "·"; margin-right: 15px; }
.now-uses { padding-block: 95px; background: var(--dark); color: var(--surface); }
.now-uses .section-heading > p, .now-uses .eyebrow { color: #b8c0bb; }
.tabs { display: flex; border-bottom: 1px solid #53615e; }
.tabs button { border: 0; border-bottom: 3px solid transparent; padding: 12px 18px; background: none; color: #b8c0bb; cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--surface); font-weight: 600; }
.tab-panel[hidden] { display: none; }
.inventory { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid #53615e; }
.inventory span { color: #b8c0bb; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.inventory strong { font: 500 clamp(1.2rem, 2.8vw, 1.8rem) "Fraunces", serif; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.notes-grid article { padding: 24px 25px 10px 0; border-bottom: 1px solid var(--line); }
.notes-grid article + article { padding-left: 25px; border-left: 1px solid var(--line); }
time { color: var(--muted); font-size: 12px; }
.notes-grid h3 { margin: 18px 0 10px; font-size: 1.7rem; }
.notes-grid p { color: var(--muted); }
.contact { padding-block: 95px; background: #e5ded1; }
.contact-inner { max-width: 760px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.contact h2 { max-width: 680px; }
.contact p:not(.eyebrow) { max-width: 570px; margin: 22px 0 27px; font-size: 18px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .opening { grid-template-columns: 1fr; padding-block: 70px; } .notebook-art { margin: 10px 0 0; } .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; } .work-item { grid-template-columns: 35px 1fr; } .work-mark { grid-column: 2; } .work-item > div:last-child { grid-column: 2; } .notes-grid { grid-template-columns: 1fr; } .notes-grid article, .notes-grid article + article { padding: 24px 0; border-left: 0; } }
@media (max-width: 520px) { nav a:not(:last-child) { display: none; } .actions { align-items: flex-start; flex-direction: column; gap: 13px; } .inventory { grid-template-columns: 1fr; gap: 6px; } .footer-row { align-items: flex-start; flex-direction: column; padding-block: 25px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
