/* TradeTally marketing site. Builds on /base.css.
   Editorial layout: documentary photographs, condensed Archivo headlines, hairlines instead of cards. */

@font-face { font-family: "Archivo Wide"; src: url("/fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

.site {
  --paper: #ECE9E2; --paper-2: #E3DFD6; --ink: #1C1B18; --ink-2: #4A4741; --ink-3: #7A766D; --rule: rgba(28, 27, 24, .16);
  --dark: #1C1B18; --dark-ink: #ECE9E2; --dark-2: #A9A497;
  --display: "Archivo Wide", "Arial Narrow", sans-serif;
  background: var(--paper); color: var(--ink); font-size: 17px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site { --paper: #161613; --paper-2: #1E1E1A; --ink: #ECE9E2; --ink-2: #BDB8AD; --ink-3: #8C887E; --rule: rgba(236, 233, 226, .16); --dark: #0E0E0C; --pos: #5BC48E; }
}
:root[data-theme="dark"] .site { --paper: #161613; --paper-2: #1E1E1A; --ink: #ECE9E2; --ink-2: #BDB8AD; --ink-3: #8C887E; --rule: rgba(236, 233, 226, .16); --dark: #0E0E0C; --pos: #5BC48E; }

html { scroll-behavior: smooth; }
.site { --gutter: max(32px, calc((100% - 1376px) / 2)); }
@media (max-width: 700px) { .site { --gutter: 16px; } }
.wrap, .container { width: 100%; padding-inline: var(--gutter); }
.section-title { font-family: var(--display); font-stretch: 72%; font-weight: 600; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.01em; max-width: 14em; }

/* Header: sits on the photograph */
.top { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter) 60px; color: #fff; background: linear-gradient(180deg, rgba(20,19,16,.55), rgba(20,19,16,0)); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 1.25rem; }
.wordmark svg { width: 36px; height: 36px; }
.top, .foot, .cis, .closer { --logo-ink: #ECE9E2; --logo-ruler: #A9B6C6; }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; }
.top__nav a { text-decoration: none; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.top__nav a:hover { opacity: 1; text-decoration: underline; }
.top__cta { padding: 9px 16px; background: #fff; color: #1C1B18; text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 2px; }
.top__cta:hover { background: #FFC20E; }
.top__menu { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 12px 8px; flex-direction: column; justify-content: space-between; }
.top__menu span { display: block; height: 2px; background: currentColor; }
@media (max-width: 860px) {
  .top { padding: 16px 16px 48px; gap: 12px; }
  .top__menu { display: flex; }
  .top__cta { margin-left: auto; }
  .top__nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); padding: 8px 18px; border-radius: 2px; }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); opacity: 1; text-shadow: none; }
  .top__nav a:last-child { border-bottom: 0; }
}

/* Opening photograph */
.hero { position: relative; height: clamp(620px, 100svh, 980px); display: flex; color: #fff; background: #3a3833; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,16,.62) 0%, rgba(20,19,16,.25) 55%, rgba(20,19,16,0) 80%), linear-gradient(0deg, rgba(20,19,16,.55) 0%, rgba(20,19,16,0) 45%); }
.hero__body { position: relative; z-index: 1; align-self: flex-end; width: 100%; padding: 0 var(--gutter) 40px; }
.hero h1 { font-family: var(--display); font-stretch: 68%; font-weight: 600; font-size: clamp(3.6rem, 11vw, 10.5rem); line-height: .86; letter-spacing: -.015em; margin-bottom: 36px; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.35); padding-top: 22px; }
.hero__foot > p { max-width: 26em; font-size: 1.15rem; line-height: 1.45; }
.hero__actions { display: flex; align-items: center; gap: 22px; }
.hero__small { font-size: .82rem; opacity: .8; line-height: 1.4; }
.hero__caption { position: absolute; z-index: 1; right: var(--gutter); top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right top; font-size: .72rem; letter-spacing: .04em; opacity: .85; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; }
@media (max-width: 700px) { .hero__body { padding: 0 16px 28px; } .hero__caption { display: none; } .hero__actions { flex-wrap: wrap; } }

/* Calls to action: plain, square, an arrow */
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; background: #fff; color: #1C1B18; font-weight: 600; text-decoration: none; border-radius: 2px; white-space: nowrap; }
.cta span { transition: transform .15s; }
.cta:hover span { transform: translateX(4px); }
.cta--dark { background: var(--ink); color: var(--paper); }
.cta--brand { background: #FFC20E; color: #1C1B18; }

/* Statement */
.intro { padding: 120px 0 100px; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.intro__statement { font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.28; letter-spacing: -.01em; text-indent: 3em; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); font-size: .9rem; }
.facts dd { margin: 0; font-family: var(--display); font-stretch: 72%; font-weight: 600; font-size: 2.4rem; line-height: 1; }
.facts small { font-size: .9rem; font-family: var(--font-body); color: var(--ink-3); font-weight: 400; }
@media (max-width: 900px) { .intro { padding: 72px 0; } .intro__grid { grid-template-columns: 1fr; gap: 40px; } }

/* A job, start to finish */
.week { padding: 40px 0 120px; }
.week__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; margin-top: 48px; align-items: start; }
.week__photo { position: sticky; top: 32px; margin: 0; }
figure img { width: 100%; height: auto; border-radius: 2px; }
figcaption { margin-top: 10px; font-size: .8rem; color: var(--ink-3); }
.days { list-style: none; margin: 0; padding: 0; }
.days li { padding: 28px 0 34px; border-top: 1px solid var(--rule); }
.days h3 { font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: 1.75rem; line-height: 1.05; margin-bottom: 12px; }
.day { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; letter-spacing: 0; }
.days p { color: var(--ink-2); max-width: 34em; }
.snip { margin-top: 18px; border-top: 2px solid var(--ink); font-size: .9rem; }
.snip div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.snip__total { font-weight: 600; }
.recon { margin-top: 18px; border-top: 2px solid var(--ink); font-size: .9rem; }
.recon__sum { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.recon__sum b { color: var(--ink); margin-left: 6px; font-variant-numeric: tabular-nums; }
.txn { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); transition: opacity .3s; }
.txn small { display: block; color: var(--ink-3); }
.txn .amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--pos, #1D7A4B); }
.txn .amt--out { color: var(--ink); }
.txn button { padding: 6px 12px; border: 1px solid var(--ink); background: none; border-radius: 2px; font-size: .82rem; font-weight: 600; }
.txn button:hover { background: var(--ink); color: var(--paper); }
.txn.is-done { opacity: 0; }
.recon__done { padding: 12px 0; font-weight: 600; }
@media (max-width: 900px) { .week { padding-bottom: 72px; } .week__grid { grid-template-columns: 1fr; gap: 32px; } .week__photo { position: static; } }

/* CIS on dark */
.cis { background: var(--dark); color: var(--dark-ink); padding: 120px 0; }
.cis__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 80px; align-items: center; }
.cis__lede { margin: 24px 0 28px; font-size: 1.15rem; color: var(--dark-2); max-width: 32em; }
.cis__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(236,233,226,.2); }
.cis__list li { padding: 13px 0; border-bottom: 1px solid rgba(236,233,226,.2); }
.paper { background: #FBFAF6; color: #1C1B18; padding: 36px 34px 30px; font-size: .92rem; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.paper__head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-stretch: 75%; font-size: 1.6rem; font-weight: 600; padding-bottom: 14px; border-bottom: 2px solid #1C1B18; }
.paper__head span { font-weight: 400; }
.paper__to { margin: 16px 0 18px; line-height: 1.4; }
.paper__to span { color: #7A766D; }
.paper__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #E2DED4; font-variant-numeric: tabular-nums; }
.paper__row i { font-style: normal; font-size: .72rem; color: #7A766D; margin-left: 4px; }
.paper__row--rule { border-top: 1px solid #1C1B18; font-weight: 600; }
.paper__row--cis span:last-child { color: #A3321F; }
.paper__row--due { border-bottom: 0; font-weight: 700; font-size: 1.1rem; padding-top: 12px; }
.paper__note { margin-top: 14px; font-size: .78rem; color: #4A4741; border-left: 3px solid #FFC20E; padding-left: 10px; }
@media (max-width: 900px) { .cis { padding: 80px 0; } .cis__grid { grid-template-columns: 1fr; gap: 48px; } .paper { transform: none; padding: 26px 20px; } }

/* Photo stories */
.story { padding: 120px 0 0; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.story--flip .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.story--flip .story__photo { order: 2; }
.story__photo { margin: 0; }
.story__text .section-title { font-size: clamp(2rem, 3.8vw, 3.3rem); margin-bottom: 22px; }
.story__text p { color: var(--ink-2); max-width: 30em; margin-bottom: 14px; }
.jobtable { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 22px; font-variant-numeric: tabular-nums; }
.jobtable th { text-align: left; font-weight: 400; color: var(--ink-2); }
.jobtable td { text-align: right; }
.jobtable th, .jobtable td { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.jobtable__total th, .jobtable__total td { font-weight: 600; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
@media (max-width: 900px) { .story { padding-top: 72px; } .story__grid, .story--flip .story__grid { grid-template-columns: 1fr; gap: 28px; } .story--flip .story__photo { order: 0; } }

/* Feature index */
.index { padding: 140px 0 120px; }
.index__table { width: 100%; border-collapse: collapse; margin-top: 44px; }
.index__table thead th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.index__table tbody th { text-align: left; font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: 1.3rem; width: 26%; }
.index__table tbody td:last-child { color: var(--ink-3); font-size: .88rem; width: 20%; }
.index__table tbody th, .index__table tbody td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.index__table tbody td:nth-child(2) { color: var(--ink-2); }
@media (max-width: 760px) {
  .index { padding: 80px 0; }
  .index__table thead { display: none; }
  .index__table tr { display: grid; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .index__table tbody th, .index__table tbody td, .index__table tbody td:last-child { display: block; width: auto; padding: 2px 0; border: 0; }
}

/* Pricing */
.pricing { padding: 0 0 120px; }
.pricing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.billing { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; }
.billing button { border: 0; background: none; padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 2px solid var(--ink); }
.plan { padding: 30px 40px 36px 0; display: flex; flex-direction: column; }
.plan + .plan { padding: 30px 0 36px 40px; border-left: 1px solid var(--rule); }
.plan h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.plan__price { font-family: var(--display); font-stretch: 68%; font-weight: 600; font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .95; margin: 14px 0 6px; }
.plan__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-3); margin-left: 10px; }
.plan__note { color: var(--ink-3); margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.plan .cta { align-self: flex-start; }
.plan__link { align-self: flex-start; font-weight: 600; padding: 15px 0; }
@media (max-width: 760px) { .pricing { padding-bottom: 80px; } .plans { grid-template-columns: 1fr; } .plan, .plan + .plan { padding: 28px 0; border-left: 0; } .plan + .plan { border-top: 1px solid var(--rule); } }

/* Questions */
.faq { padding: 0 0 120px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; border-top: 1px solid var(--rule); padding-top: 60px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 38em; }
@media (max-width: 900px) { .faq { padding-bottom: 80px; } .faq__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Closer and footer */
.closer { background: var(--dark); color: var(--dark-ink); padding: 100px 0; }
.closer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.closer__line { font-family: var(--display); font-stretch: 72%; font-weight: 600; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; max-width: 13em; }
.foot { background: var(--dark); color: var(--dark-2); padding: 0 0 28px; font-size: .9rem; }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid rgba(236,233,226,.2); }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot a { color: var(--dark-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__theme { background: none; border: 0; padding: 0; text-align: left; color: var(--dark-2); }
.foot__mark { font-family: var(--display); font-stretch: 62%; font-weight: 700; font-size: clamp(4rem, 25.5vw, 25rem); line-height: .8; white-space: nowrap; color: var(--dark-ink); margin: 64px 0 24px; letter-spacing: -.02em; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 700px) { .foot__cols { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 100svh; padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; }
.wordmark--ink { color: var(--ink); }
.notfound h1 { font-family: var(--display); font-stretch: 66%; font-weight: 600; font-size: clamp(4rem, 14vw, 12rem); line-height: .9; margin: auto 0 20px; }
.notfound p { color: var(--ink-2); margin-bottom: 28px; max-width: 30em; }
.notfound__links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.notfound__links a:not(.cta) { color: var(--ink); font-weight: 600; }

/* The trades */
.trades { padding: 20px 0 120px; }
.trades__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.trades__row figure { margin: 0; }
.trades__row img { aspect-ratio: 4 / 5; object-fit: cover; }
.trades__row figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.trades__note { margin-top: 32px; max-width: 40em; color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 700px) {
  .trades { padding-bottom: 72px; }
  .trades__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .trades__row figure { scroll-snap-align: start; }
}
