/* Hillside Payments — hillsidepay.com
   Single stylesheet. No build step. Edit and push. */

:root {
  --paper: #f1f3ef;
  --paper-deep: #e6eae4;
  --white: #ffffff;
  --ink: #15231b;
  --ink-soft: #44524a;
  --green: #23563a;
  --green-deep: #183d29;
  --green-text-on: #e9efe9;
  --canary: #f5e6a6;
  --canary-rule: #cdb96a;
  --canary-ink: #2a2a1c;
  --stamp: #b83a2a;
  --rule: #c9cfc6;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Font ---------- */
/* Archivo (SIL Open Font License) — self-hosted variable font with
   weight 100–900 and width 62%–125% axes. License in /fonts. */

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

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 78%;
  font-variation-settings: "wdth" 78;
  letter-spacing: -0.015em;
  line-height: 1;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

.nobr {
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 88%;
  font-variation-settings: "wdth" 88;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

.mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.mark rect {
  fill: var(--green);
}

.mark path {
  fill: var(--canary);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--green);
  color: var(--green-text-on);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  color: var(--white);
  max-width: 19ch;
  text-wrap: balance;
}

.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 44ch;
  color: var(--green-text-on);
}

/* ---------- Ticket ---------- */

.ticket {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 440px);
  background: var(--canary);
  color: var(--canary-ink);
  padding: 22px 24px 26px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.08),
    0 18px 40px -20px rgba(0, 0, 0, 0.55);
  font-size: 0.92rem;
  line-height: 1.35;
  /* Perforated top edge, like a pad */
  -webkit-mask-image: radial-gradient(circle at 10px 0, transparent 5px, #000 5.5px);
  -webkit-mask-size: 20px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle at 10px 0, transparent 5px, #000 5.5px);
  mask-size: 20px 100%;
  mask-repeat: repeat-x;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0 12px;
  border-bottom: 2px solid var(--canary-ink);
}

.ticket-title {
  font-weight: 800;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ticket-meta {
  margin-top: 6px;
  color: #5a5a44;
}

.ticket-no {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5a5a44;
  white-space: nowrap;
}

.ticket-lines {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.ticket-lines th,
.ticket-lines td {
  padding: 7px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--canary-rule);
}

.ticket-lines th {
  font-weight: 600;
  font-size: 0.8rem;
  color: #5a5a44;
}

.ticket-lines .qty {
  width: 3em;
  padding-right: 10px;
}

.ticket-lines .amt {
  text-align: right;
  white-space: nowrap;
}

.ticket-lines tfoot td {
  border-bottom: 0;
  padding-top: 6px;
  padding-bottom: 4px;
  color: #3c3c2c;
}

.ticket-lines tfoot tr:first-child td {
  padding-top: 12px;
  border-top: 1px solid var(--canary-ink);
}

.ticket-lines tfoot .balance td {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--canary-ink);
  padding-top: 10px;
  border-top: 2px solid var(--canary-ink);
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--canary-rule);
}

.stamp {
  flex: none;
  transform: rotate(-7deg);
  padding: 6px 10px;
  border: 3px double var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-weight: 800;
  font-stretch: 85%;
  font-variation-settings: "wdth" 85;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.86;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ticket-caption {
  margin: 0;
  font-size: 0.82rem;
  color: #5a5a44;
  max-width: 30ch;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-tint {
  background: var(--paper-deep);
}

.section h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--green-deep);
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 44px);
}

.item h3 {
  font-size: 1.35rem;
  font-stretch: 84%;
  font-variation-settings: "wdth" 84;
  line-height: 1.1;
  color: var(--ink);
  padding-top: 14px;
  border-top: 2px solid var(--green);
}

.item p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 38ch;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.prose {
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--ink);
}

.aside {
  margin-top: 14px;
  max-width: 28ch;
  color: var(--ink-soft);
}

/* Who we work with */

.verticals {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 40px);
}

.vertical {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.vertical dt {
  font-weight: 800;
  font-stretch: 84%;
  font-variation-settings: "wdth" 84;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.vertical dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

.vertical-featured {
  grid-column: 1 / -1;
  border-top: 2px solid var(--green);
  padding-left: 18px;
  border-left: 4px solid var(--canary);
}

.vertical-featured dd {
  max-width: 68ch;
  color: var(--ink);
}

.prose p + p {
  margin-top: 1.1em;
}

/* ---------- Contact ---------- */

.section-contact {
  border-top: 1px solid var(--rule);
}

.contact-line a {
  display: inline-block;
  font-weight: 800;
  font-stretch: 78%;
  font-variation-settings: "wdth" 78;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 3px solid var(--canary-rule);
  padding-bottom: 4px;
  word-break: break-all;
}

.contact-line a:hover {
  border-bottom-color: var(--green);
}

.contact-line + p {
  margin-top: 1.4em;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: var(--green-text-on);
  padding: 28px 0 36px;
  font-size: 0.9rem;
}

.footer-row p + p {
  margin-top: 12px;
}

.disclosure {
  color: #b8c7bb;
  font-size: 0.85rem;
  max-width: 70ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .ticket {
    justify-self: start;
  }

  .three-up {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .verticals {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .aside {
    max-width: 48ch;
  }
}

.site-nav a {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .header-row {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 12px;
    gap: 8px 24px;
    min-height: 0;
  }

  .wordmark {
    white-space: nowrap;
  }

  .site-nav {
    flex-basis: 100%;
    font-size: 0.9rem;
    gap: 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 16px;
  }

  .ticket {
    padding: 18px 16px 22px;
    font-size: 0.86rem;
  }

  .ticket-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .stamp {
    font-size: 0.85rem;
    align-self: flex-end;
  }
}
