/* Layout for viktorthebroker.com.au. Colour, type and spacing come only from design-system/tokens.css.
   Component classes (.vtb-*) come from design-system/components.css. No gradients, no shadows, no icons beyond inline Lucide. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 18px; line-height: 30px; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--cloth-text); text-decoration: underline; text-underline-offset: 3px; transition: color 150ms, background-color 150ms, border-color 150ms; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--paper-raised); color: var(--ink); border: 1px solid var(--rule-strong); padding: var(--space-2) var(--space-4); font-family: var(--font-ui); font-size: 15px; z-index: 10; }
.skip:focus { top: var(--space-2); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 var(--space-6); }
main > section, main > .wrap > section { margin-top: var(--space-12); }
.band-top { padding-top: var(--space-24); }
.eyebrow { color: var(--gilt-text); margin: 0; }
.muted { color: var(--ink-muted); }
.prose { max-width: 65ch; display: flex; flex-direction: column; gap: var(--space-4); }
.prose + .prose { margin-top: var(--space-6); }
.row { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-6); }
.row > .note { color: var(--ink-muted); padding-top: 6px; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
a.vtb-button { display: inline-block; text-decoration: none; }
.link-row { display: inline-flex; align-items: center; gap: var(--space-2); }

/* page head for pages without a numeral (library, about, contact) */
.page-head { border-top: 1px solid var(--rule); padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.page-head h1 { font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.01em; }
.page-head .lede { max-width: 60ch; }
.giltrule { width: 48px; height: 2px; background: var(--gilt); border: 0; margin: 0; }

/* home */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-12); align-items: start; }
.hero h1 { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.hero .intro { max-width: 52ch; display: flex; flex-direction: column; gap: var(--space-4); }
.lockup { background: var(--cloth); display: block; }
.lockup img { display: block; width: 100%; height: auto; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-4); }
a.stage-card { text-decoration: none; color: var(--ink); height: 100%; transition: border-color 150ms, background-color 150ms; }
a.stage-card:hover { border-color: var(--rule-strong); background: var(--paper-sunk); }
a.stage-card .vtb-card__title { color: var(--ink); }
a.stage-card .go { margin-top: auto; padding-top: var(--space-3); color: var(--cloth-text); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; line-height: 22px; display: inline-flex; gap: var(--space-2); align-items: center; }

/* stage and library lists */
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.item .kind { display: flex; align-items: center; gap: var(--space-2); }
.status { display: inline-block; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 0 var(--space-2); font-family: var(--font-ui); font-size: 13px; line-height: 20px; color: var(--ink); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.group + .group { margin-top: var(--space-12); }
.group > h2 { margin-bottom: var(--space-4); }
.ph { font-family: var(--font-ui); font-size: 15px; color: var(--ink); background: var(--paper-sunk); border: 1px solid var(--rule); padding: 0 var(--space-2); white-space: nowrap; }

/* forms */
.form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 560px; background: var(--paper-raised); border: 1px solid var(--rule); padding: var(--space-6); }
.form .vtb-field { max-width: none; }
.form textarea.vtb-field__input { min-height: 144px; resize: vertical; }
.form select.vtb-field__input { appearance: auto; }
.form .actions .caption { color: var(--ink-muted); }

/* footer */
.foot { background: var(--cloth-deep); color: var(--on-cloth); margin-top: var(--space-24); padding: var(--space-12) 0; font-family: var(--font-ui); font-size: 15px; line-height: 22px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: start; }
.foot a { color: var(--on-cloth); text-underline-offset: 3px; }
.foot a:focus-visible, .foot button:focus-visible { outline-color: var(--gilt-on-cloth); }
.foot .name { font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 500; }
.foot .name i { font-weight: 400; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.foot .meta { display: flex; flex-direction: column; gap: var(--space-3); }
.foot .eyebrow { color: var(--on-cloth); }
.foot .caption { color: var(--on-cloth); }
.foot .theme { font-family: var(--font-ui); font-size: 15px; line-height: 22px; background: transparent; color: var(--on-cloth); border: 1px solid var(--on-cloth); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4); cursor: pointer; transition: background-color 150ms; }
.foot .theme:hover { background: var(--cloth); }
.foot .edu { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 32px; margin: 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-8); }
  .lockup { max-width: 340px; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 var(--space-4); }
  .band-top { padding-top: var(--space-12); }
  .row { grid-template-columns: 1fr; gap: var(--space-2); }
  .hero h1 { font-size: 44px; line-height: 48px; }
  .vtb-opener__title, .page-head h1 { font-size: 34px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* content pages, added for the full content build */
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--space-4); max-width: 65ch; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.steps > li::before { content: counter(step); font-family: var(--font-figure); font-size: 15px; line-height: 30px; color: var(--ink-muted); }
.steps strong, .prose strong { font-weight: 500; }
.bullets { list-style: none; max-width: 65ch; display: flex; flex-direction: column; gap: var(--space-2); }
.bullets > li { padding-left: var(--space-6); position: relative; }
.bullets > li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 1px; background: var(--ink-muted); }
.ledger { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--paper-sunk); border: 1px solid var(--rule); font-family: var(--font-ui); font-size: 15px; line-height: 22px; }
.ledger caption { text-align: left; font-family: var(--font-ui); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 0 0 var(--space-2); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--rule); }
.ledger th { font-weight: 600; }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger td:first-child { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.closing { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 32px; border-top: 1px solid var(--rule); padding-top: var(--space-6); }
.tc { font-family: var(--font-ui); font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; }
.catalogue-intro { display: flex; flex-direction: column; gap: var(--space-4); }
.item .vtb-card__body { flex: 1; }
.series { font-family: var(--font-figure); font-size: 13px; color: var(--ink-muted); }
@media (max-width: 520px) { .ledger td:first-child { white-space: normal; } }
.foot .tc { color: var(--on-cloth); }

.portrait { margin: var(--space-8) 0 0; max-width: 280px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius-none); }
