/* ==========================================================================
   Larch & Lumen Accounting: a SAMPLE site for an invented firm.
   Made by Atlas Metrics to show prospects what a client site looks like.

   Deliberately not Atlas's skin: warm cream and larch green instead of navy,
   Lato (one family, light display) instead of Source Serif 4 + Inter, square
   corners, a light footer, no motion layer and no JavaScript at all.
   The rules carried over from Atlas/internal/design/web-formula.md are the
   ones about structure and honesty: every colour is a token in :root, one
   h1 a page, one primary action a page, and a source for every tax fact.
   ========================================================================== */

/* Lato 1.105 by Łukasz Dziedzic, SIL Open Font License 1.1; the copyright and licence
   travel inside each font file's name table. */
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/samples/accounting-firm/fonts/lato-300.ttf") format("truetype");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/samples/accounting-firm/fonts/lato-400.ttf") format("truetype");
}

:root {
  --paper:     #F7F3EB;   /* warm cream ground */
  --paper-2:   #EEE6D6;   /* sand band */
  --card:      #FFFCF5;
  --ink:       #1F2420;
  --ink-2:     #4C534C;
  --brand:     #2D5A44;   /* larch green */
  --brand-ink: #2A5440;
  --deep:      #1D3A2C;
  --deep-2:    #142A20;
  --accent:    #C9862B;   /* lamplight amber: rules and marks only, never text */
  --accent-ink:#85500F;   /* amber that is safe as text on cream */
  --line:      #DDD3C1;
  --line-3:    #857C6B;   /* boundary of a control, 3:1 or better */
  --on-deep:   #F1EBDD;
  --on-deep-2: #C3D2C6;
  --sample:    #F2C66D;   /* the SAMPLE chip */
  --white:     #FFFFFF;

  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --pad: clamp(1rem, 4.5vw, 2.25rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.62;
  color: var(--ink); background: var(--paper);
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--on-deep); }

h1, h2, h3 { font-weight: 300; color: var(--deep); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; font-weight: 400; letter-spacing: 0; line-height: 1.3; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 400; color: var(--deep); }   /* only two weights ship; emphasis is colour */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { left: 0; }

/* ---------- the SAMPLE strip: on every page, before anything else ---------- */
.sample-bar { background: var(--ink); color: var(--on-deep); font-size: .86rem; line-height: 1.45; }
.sample-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding-block: .55rem; }
.sample-bar .chip { background: var(--sample); color: var(--ink); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .18rem .55rem; }
.sample-bar a { color: var(--on-deep); }

/* ---------- header ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.wordmark { display: flex; align-items: center; gap: .75rem; color: var(--deep); text-decoration: none; }
.wordmark svg { width: 40px; height: 40px; flex: 0 0 40px; }
.wordmark .name { display: block; font-size: 1.32rem; font-weight: 400; letter-spacing: .01em; line-height: 1.1; }
.wordmark .sub { display: block; font-size: .78rem; color: var(--ink-2); letter-spacing: .04em; }
.mark-bg { fill: var(--deep); }
.mark-tree { fill: none; stroke: var(--on-deep); stroke-width: 1.7; stroke-linecap: round; }
.mark-light { fill: var(--accent); }

.nav { display: flex; gap: 1.6rem; font-size: .98rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line-3); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--deep); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line-3); padding: .4rem .85rem; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; width: min(78vw, 280px);
  background: var(--card); border: 1px solid var(--line-3); }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: block; padding: .8rem 1rem; color: var(--ink); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--deep); box-shadow: inset 4px 0 0 var(--accent); }

/* ---------- shared pieces ---------- */
.eyebrow { display: inline-block; font-size: .9rem; color: var(--brand-ink); background: var(--paper-2);
  padding: .2rem .75rem; border-radius: 999px; margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 38em; }
.button { display: inline-block; background: var(--deep); color: var(--on-deep); text-decoration: none;
  padding: .85rem 1.5rem; font-size: 1rem; letter-spacing: .02em; border: 2px solid var(--deep); }
.button:hover { background: var(--deep-2); border-color: var(--deep-2); text-decoration: underline; }
.on-dark .button { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.band { padding: clamp(3rem, 6.5vw, 5.25rem) 0; }
.band.sand { background: var(--paper-2); }
.band.green { background: var(--deep); color: var(--on-deep); }
.band.green h2 { color: var(--on-deep); }
.band-head { max-width: 40em; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.band-head h2 + p { margin-top: .9rem; color: var(--ink-2); }
.src { font-size: .82rem; color: var(--ink-2); }
.src a { color: var(--ink-2); }
.lead .src { display: block; margin-top: .7rem; }
.checked { font-size: .86rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: .8rem; margin-top: 1.4rem; }

/* ---------- home: hero ---------- */
.hero { padding: clamp(2.6rem, 6vw, 4.8rem) 0 clamp(2.8rem, 6vw, 4.6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { margin-bottom: 2rem; }
.hero .aside-note { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-2); }

.dates { background: var(--deep); color: var(--on-deep); padding: 1.6rem 1.6rem 1.4rem; border-top: 5px solid var(--accent); }
.dates h2 { font-size: 1.05rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-2); margin-bottom: 1rem; }
.dates ol { list-style: none; }
.dates li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--deep-2); }
.dates li:first-child { border-top: 0; padding-top: .2rem; }
.dates .d { text-align: center; line-height: 1; }
.dates .d b { display: block; font-weight: 300; font-size: 2rem; color: var(--white); }
.dates .d span { display: block; white-space: nowrap; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; color: var(--on-deep-2); }
.dates p { font-size: .96rem; color: var(--on-deep); }
.dates p small { display: block; font-size: .8rem; color: var(--on-deep-2); margin-top: .2rem; }
.dates .more { margin-top: 1rem; font-size: .92rem; }
.dates a { color: var(--on-deep); }

/* ---------- home: services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-3); }
.services article { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.services article:not(:nth-child(3n+1)) { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.services h3 { margin-bottom: .55rem; color: var(--deep); }
.services h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 1rem; }
.services p { color: var(--ink-2); font-size: .98rem; }

/* ---------- home: how a new client starts ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); padding: 1.6rem; border: 1px solid var(--line); }
.steps li::before { content: "Step " counter(step); display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .7rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: .98rem; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); list-style: none; }
.facts li { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--on-deep); }
.facts b { display: block; font-weight: 400; font-size: 1.15rem; color: var(--white); margin-bottom: .2rem; }

.visit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.visit dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.4rem; font-size: 1rem; }
.visit dt { color: var(--ink-2); }
.visit h2 { margin-bottom: 1.2rem; }

/* ---------- interior pages ---------- */
.page-head { padding: clamp(2.4rem, 5vw, 3.8rem) 0 clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 1rem; max-width: 22em; }
.page-body { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(3rem, 6vw, 4.8rem); }
.two-col { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: start; }
.toc { position: sticky; top: 1.2rem; font-size: .95rem; }
.toc p { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
.toc ul { list-style: none; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .3rem 0 .3rem .9rem; color: var(--ink); text-decoration: none; }
.toc li a:hover { color: var(--brand-ink); text-decoration: underline; }
.prose { max-width: 44em; }
.prose h2 { margin: 2.6rem 0 1rem; scroll-margin-top: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .4rem; }

.option { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
.option.slow { border-top-color: var(--line-3); }
.option .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .35rem; }
.option h3 { margin: 0 0 .7rem; }
.option ol { margin: .6rem 0 .8rem 1.3rem; }
.option li { margin-bottom: .35rem; }

/* ---------- what to bring ---------- */
.bring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); }
.bring section { background: var(--card); border: 1px solid var(--line); padding: 1.4rem 1.4rem 1.6rem; }
.bring h2 { font-size: 1.3rem; font-weight: 400; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.tick { list-style: none; }
.tick li { position: relative; padding-left: 1.9rem; margin-bottom: .9rem; font-size: .98rem; }
.tick li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--brand); }
.tick li .src { display: block; margin-top: .15rem; }

/* ---------- key dates ---------- */
.cal { list-style: none; border-top: 1px solid var(--line-3); }
.cal > li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.tile { background: var(--card); border: 1px solid var(--line); text-align: center; padding: .55rem .3rem .7rem; align-self: start; }
.tile .m { display: block; background: var(--brand); color: var(--on-deep); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin: -.55rem -.3rem .4rem; padding: .25rem 0; }
.tile .n { display: block; font-size: 2.1rem; font-weight: 300; color: var(--deep); line-height: 1.05; }
.tile .y { display: block; font-size: .78rem; color: var(--ink-2); }
.cal h2 { font-size: 1.22rem; font-weight: 400; margin-bottom: .35rem; }
.cal p { color: var(--ink-2); font-size: .98rem; margin-bottom: .45rem; }
.cal .who { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .3rem; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); margin-top: 2.6rem; }
.rules section { background: var(--card); border: 1px solid var(--line); padding: 1.4rem 1.5rem; }
.rules h2 { font-size: 1.22rem; font-weight: 400; margin-bottom: .6rem; }
.rules p, .rules li { color: var(--ink-2); font-size: .98rem; }
.rules ul { margin: 0 0 .8rem 1.2rem; }

/* the countdown, the filter and the calendar button: added by dates.js, absent without it */
.who-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.4rem; font-size: .95rem; }
.who-filter[hidden] { display: none; }
.who-filter > span:first-child { color: var(--ink-2); margin-right: .2rem; }
.who-filter button { font: inherit; font-size: .92rem; background: var(--card); color: var(--ink); border: 1px solid var(--line-3);
  padding: .35rem .85rem; border-radius: 999px; cursor: pointer; }
.who-filter button[aria-pressed="true"] { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.who-filter .count { color: var(--ink-2); font-size: .88rem; }
.cal .when { display: inline-block; font-size: .8rem; letter-spacing: .04em; color: var(--brand-ink); background: var(--paper-2);
  padding: .1rem .6rem; border-radius: 999px; margin-bottom: .45rem; }
.cal .when[hidden] { display: none; }
.cal .when.soon { background: var(--sample); color: var(--ink); }
.cal > li.past { opacity: .55; }
.cal > li[hidden] { display: none; }
.row-actions { margin-top: .5rem; }
.row-actions[hidden] { display: none; }
.cal-add { font: inherit; font-size: .9rem; background: transparent; color: var(--brand-ink); border: 1px solid var(--line-3);
  padding: .35rem .8rem; cursor: pointer; }
.cal-add:hover { border-color: var(--brand); background: var(--card); }
.dates p small { display: block; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: start; }
.details dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem 1.4rem; margin-bottom: 1.6rem; }
.details dt { color: var(--ink-2); }
.form-off { background: var(--card); border: 1px solid var(--line); padding: 1.6rem; }
.form-off .notice { background: var(--paper-2); border-left: 4px solid var(--accent); padding: .8rem 1rem; font-size: .94rem; margin-bottom: 1.3rem; }
.form-off label { display: block; font-size: .95rem; margin-bottom: .35rem; }
.form-off input, .form-off textarea { width: 100%; font: inherit; font-size: 1rem; padding: .65rem .75rem; border: 1px solid var(--line-3);
  background: var(--paper); color: var(--ink); margin-bottom: 1rem; }
.form-off textarea { min-height: 7rem; resize: vertical; }
.form-off button { font: inherit; background: var(--paper-2); color: var(--ink-2); border: 1px dashed var(--line-3); padding: .75rem 1.3rem; cursor: not-allowed; }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); border-top: 4px solid var(--brand); padding: 2.4rem 0 2rem; font-size: .94rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem 3rem; }
.foot h2 { font-size: .8rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
.foot ul { list-style: none; }
.foot li { margin-bottom: .3rem; }
.foot a { color: var(--ink); }
.foot .firm { color: var(--deep); font-size: 1.1rem; margin-bottom: .4rem; }
.foot .made { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .86rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero .wrap, .contact-grid, .two-col, .visit { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .services, .bring { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services article, .services article:not(:nth-child(3n+1)) { padding: 1.4rem 1.2rem 1.6rem 0; border-left: 0; }
  .services article:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .services, .bring, .steps, .facts, .rules { grid-template-columns: minmax(0, 1fr); }
  .services article, .services article:nth-child(even) { padding: 1.3rem 0 1.4rem; border-left: 0; }
  .cal > li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 1rem; }
  .tile .n { font-size: 1.7rem; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .masthead .wrap { min-height: 66px; }
  .wordmark .sub { display: none; }
}
@page { size: letter; margin: .5in; }
@media print {
  .who-filter, .row-actions, .masthead nav, .menu, .foot, .toc, .button, .skip { display: none; }
  .sample-bar { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line-3); }
  .sample-bar a { display: none; }
  .sample-bar .chip { border: 1px solid var(--ink); }
  .masthead .wrap { min-height: 0; padding-block: .5rem; }
  .page-head { padding: .8rem 0 .6rem; }
  .page-head .eyebrow { display: none; }
  .page-head h1 { font-size: 1.7rem; margin-bottom: .4rem; }
  .lead { font-size: 1rem; }
  .page-body { padding: .9rem 0 0; }
  .bring { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
  .bring section { padding: .7rem .75rem .5rem; }
  .bring h2 { font-size: 1.05rem; margin-bottom: .5rem; padding-bottom: .35rem; }
  .tick li { font-size: .8rem; line-height: 1.38; margin-bottom: .45rem; padding-left: 1.3rem; }
  .tick li::before { width: .75rem; height: .75rem; border-width: 1.5px; }
  .tick .src { font-size: .68rem; }
  .checked { margin-top: .7rem; font-size: .72rem; }
  body { background: var(--white); font-size: 11pt; }
  .two-col { grid-template-columns: 1fr; }
  .dates, .band.green { background: var(--white); color: var(--ink); }
  .dates *, .band.green * { color: var(--ink) !important; }
}
