/* Quillfern Books & Tax: a fictional bookkeeping and tax practice (Veshtera concept site). */
:root {
  --paper: #fcfcf9;
  --ledger: #f1f3ee;
  --white: #ffffff;
  --ink: #1b2230;
  --text: #262c38;
  --muted: #545b68;
  --accent: #2f45c5;
  --accent-deep: #22339a;
  --mint: #dff3ea;
  --mint-ink: #145c43;
  --line: #d9ddd6;
  --rule: #e6e9e2;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 6px;
  --wrap: 70rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1.0625rem/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0 0 .65rem; font-style: normal; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--white); padding: .7rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Always-visible concept label */
.concept-bar { background: var(--mint); border-bottom: 1px solid #bfe3d2; text-align: center; font-size: .875rem; }
.concept-bar a { display: inline-block; color: var(--mint-ink); padding: .5rem 1rem; font-weight: 600; min-height: 24px; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.brand-word small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: .6rem .8rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--r); font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); color: var(--white); }
.btn-quiet { background: var(--white); color: var(--ink); border-color: #b8beb4; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

/* Hero with ledger paper */
.hero { background-color: var(--white); background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 2rem; border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.hero .lede { font-size: 1.18rem; color: var(--muted); max-width: 33rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-art { width: 100%; max-width: 32rem; margin: 0 auto; }

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section.tint { background: var(--ledger); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.overline { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-ink); margin-bottom: .6rem; }

.columns { display: grid; gap: 1.5rem; }
.col { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--r); padding: 1.6rem; }
.col.alt { border-top-color: var(--accent); }
.col-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.col-head svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.col-head h3 { margin: 0; font-size: 1.35rem; }
.col > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.ticks { list-style: none; margin: 0 0 1rem; padding: 0; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 0; }
.ticks svg { width: 20px; height: 20px; color: var(--mint-ink); margin-top: .2rem; }

.pillars { display: grid; gap: 1.5rem; }
.pillar svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: .7rem; }
.pillar p { color: var(--muted); margin: 0; }

.placeholder { border: 1.5px dashed #9aa293; border-radius: var(--r); padding: 1.75rem 1.5rem; color: var(--muted); background: var(--white); }
.placeholder strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }
.placeholder.center { text-align: center; }

.split { display: grid; gap: 2rem; align-items: start; }

.cta-strip { border-top: 4px solid var(--ink); background: var(--white); padding: clamp(1.75rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; align-items: center; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 1px 0 var(--line); }
.cta-strip h2 { margin-bottom: .3rem; }
.cta-strip p { margin: 0; color: var(--muted); }
.cta-strip .row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Page heading */
.page-hero { padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.75rem; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0; }

/* Form */
.layout { display: grid; gap: 2rem; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.form h2 { font-size: 1.45rem; }
.grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label, fieldset legend { font-weight: 600; color: var(--ink); }
.hint { font-size: .9rem; color: var(--muted); }
input, select, textarea { font: inherit; line-height: 1.4; color: var(--text); background: var(--white); border: 1.5px solid #8f978a; border-radius: var(--r); padding: .7rem .85rem; min-height: 48px; width: 100%; }
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.choice label { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--accent); background: #eef0fb; }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-foot p { margin: 0; font-size: .92rem; color: var(--muted); }
.form-note { margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-radius: var(--r); background: var(--mint); color: var(--mint-ink); font-weight: 700; }
.aside { display: grid; gap: 1rem; }
.aside-card { background: var(--ledger); border-radius: var(--r); padding: 1.4rem; }
.aside-card h2 { font-size: 1.2rem; }
.aside-card p:last-child { margin-bottom: 0; }
.upload { border: 1.5px dashed #9aa293; border-radius: var(--r); background: var(--white); padding: 1.4rem; }
.upload-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .5rem; }
.upload-head svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.upload-head h2 { margin: 0; font-size: 1.2rem; }
.upload p { color: var(--muted); font-size: .97rem; }
.upload p:last-child { margin-bottom: 0; }

/* Footer */
.site-foot { background: var(--ink); color: #c9cfd9; margin-top: clamp(2.5rem, 6vw, 4rem); padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-foot :focus-visible { outline-color: var(--mint); }
.foot-grid { display: grid; gap: 1.75rem; }
.site-foot h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #e6e9ef; margin-bottom: .5rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--white); }
.site-foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot .brand, .site-foot .brand:hover { color: var(--white); }
.site-foot .brand-word { font-size: 1.15rem; }
.site-foot .brand svg { border-radius: 8px; box-shadow: 0 0 0 1px #4a5570; }
.site-foot .brand-word small { color: #c9cfd9; }
.foot-about { max-width: 26rem; margin-top: .75rem; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid #364055; margin-top: 1.75rem; padding-top: 1rem; }
.foot-base a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 720px) {
  .columns { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-strip { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .layout { grid-template-columns: 1.6fr 1fr; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.two .full { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav .btn { padding: .6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
