/* Old Vintage Man - shared stylesheet */

/* Fonts, served from this site (fonts/, SIL Open Font License 1.1: the
   licenses are beside the files). Variable fonts: one file per subset
   covers every weight used here. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5eedd;
  --paper-light: #fbf6e9;
  --paper-dark: #ece2c8;
  --ink: #22302a;
  --muted: #4d5a52;
  --green: #1e4a38;
  --green-deep: #153527;
  --accent: #a4471f;
  --accent-dark: #863716;
  --gold: #d8a23a;
  --line: #d6c9a8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(34, 48, 42, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--green-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--green-deep);
  color: var(--paper-light);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper-light);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 0 var(--paper), 0 4px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--green-deep);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--green);
}

.wordmark svg {
  width: 44px;
  height: 44px;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--paper-dark);
  color: var(--green-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--green-deep);
  box-shadow: inset 0 -3px 0 var(--gold);
  border-radius: 6px 6px 0 0;
}

.site-nav .nav-cta a {
  background: var(--green);
  color: var(--paper-light);
}

.site-nav .nav-cta a:hover {
  background: var(--green-deep);
  color: var(--paper-light);
}

.site-nav .nav-cta a[aria-current="page"] {
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 var(--gold);
  color: var(--paper-light);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--paper-light);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--paper-light);
}

.button-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.button-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-ghost {
  background: transparent;
  color: var(--green-deep);
}

.button-ghost:hover {
  background: var(--paper-dark);
  border-color: var(--green);
  color: var(--green-deep);
}

.button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Shared section pieces */

.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--paper-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38em;
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 120px;
  margin: 0 0 18px;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
}

.ornament span {
  width: 9px;
  height: 9px;
  background: currentColor;
  transform: rotate(45deg);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-dark);
  color: var(--green);
  border: 1px solid var(--line);
  flex: none;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 2px 0 var(--line);
}

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

.card h3 {
  margin-top: 16px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
}

/* Home hero */

.hero {
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.listing-stack {
  display: grid;
  gap: 16px;
  padding: 8px 4px;
}

.listing-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--line), 0 14px 26px -18px rgba(21, 53, 39, 0.55);
  overflow: hidden;
}

.listing-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.listing-card:nth-child(2) {
  transform: rotate(0.9deg) translateX(14px);
}

.listing-card:nth-child(3) {
  transform: rotate(-0.6deg);
}

.listing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  background: var(--green);
  color: var(--paper-light);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
}

.listing-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
}

.listing-head .tag .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.listing-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink);
}

.listing-rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.listing-rows .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

/* Detail tiles */

.detail-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  background: var(--paper-light);
}

.detail-tile h3 {
  margin: 0 0 2px;
  font-size: 1.15rem;
}

.detail-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  counter-increment: step;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 24px 26px;
  box-shadow: 0 2px 0 var(--line);
}

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

.step::before {
  content: counter(step);
  position: absolute;
  top: -24px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--paper-light), 0 0 0 6px var(--gold);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.steps.grid {
  row-gap: 44px;
  padding-top: 24px;
}

/* Check and cross lists */

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--green-deep);
}

.info-list span.note {
  color: var(--muted);
  font-size: 0.98rem;
}

.dont-list {
  display: grid;
  gap: 14px;
}

.dont-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.dont-list .icon {
  color: var(--accent);
  stroke-width: 2.4;
}

.fine-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

/* Inner page hero */

.page-hero {
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.page-hero .lead {
  margin-bottom: 0;
}

/* Call to action band */

.cta-band {
  background: var(--green-deep);
  color: var(--paper-light);
  padding: 64px 0;
  border-top: 4px solid var(--gold);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--paper-light);
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  font-size: 1.15rem;
  color: #e4dcc4;
  max-width: 34em;
}

.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

.cta-band .button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

.cta-band .button:hover {
  background: #e6b556;
  border-color: #e6b556;
  color: var(--green-deep);
}

/* Prose pages */

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.55rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.3em;
}

.operator-box {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-weight: 600;
}

.operator-box p {
  margin: 0;
}

/* Contact form */

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 0 var(--line);
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--green-deep);
}

label .optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #8b8a74;
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4a38' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--green);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#turnstile-slot:empty {
  display: none;
}

#turnstile-slot {
  margin-bottom: 20px;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  background: #dfeedd;
  border: 1.5px solid var(--green);
  color: var(--green-deep);
}

.form-status.is-error {
  background: #f8e2d6;
  border: 1.5px solid var(--accent);
  color: #6e2b0f;
}

.side-note {
  display: grid;
  gap: 20px;
}

.side-note .card h2 {
  font-size: 1.3rem;
  margin: 14px 0 8px;
}

/* Footer */

.site-footer {
  background: var(--green-deep);
  color: #e4dcc4;
  padding: 48px 0 32px;
}

.cta-band + .site-footer {
  border-top: 1px solid rgba(245, 238, 221, 0.18);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
}

.site-footer .wordmark {
  color: var(--paper-light);
}

.footer-tagline {
  margin: 12px 0 0;
  max-width: 24em;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--paper-light);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: var(--gold);
}

.small-print {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 238, 221, 0.22);
  font-size: 0.85rem;
  color: #d3caae;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .listing-stack {
    max-width: 520px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 0 18px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .header-inner {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .wordmark svg {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    gap: 2px;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 0 -6px;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .site-nav .nav-cta a {
    padding: 8px 10px;
  }

  .lead {
    font-size: 1.08rem;
  }

  .grid-2,
  .grid-4,
  .info-list,
  .field-row {
    grid-template-columns: 1fr;
  }

  .info-list {
    gap: 0;
  }

  .listing-rows {
    font-size: 0.85rem;
    gap: 8px 10px;
    padding: 12px;
  }

  .listing-card:nth-child(2) {
    transform: rotate(0.9deg);
  }

  .button-row .button {
    width: 100%;
  }

  .form-card {
    padding: 22px 18px;
  }

  .form-card .button {
    width: 100%;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-band .button {
    width: 100%;
  }

  .footer-nav ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 359px) {
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

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

/* Card titles that are h2 in the outline but sized like h3 */
.h3-size {
  font-size: 1.25rem;
  margin-top: 16px;
}
