/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #FAF8F4;
  --bg-alt:    #F0EDE6;
  --text:      #1B1B19;
  --primary:   #234E3F;
  --accent:    #A8521F;
  --accent-dk: #8c4418;
  --border:    rgba(27,27,25,.14);
  --hairline:  rgba(27,27,25,.18);
  --radius:    3px;
  --max-w:     1080px;
  --gap:       clamp(1.5rem, 4vw, 2.5rem);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* paper grain — makes the warm paper literal */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }

a { color: inherit; }

a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  line-height: 1.12;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); font-weight: 500; }

p { max-width: 65ch; }

/* ─── Layout helpers ─────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2 * clamp(1rem, 5vw, 3rem));
  margin-inline: auto;
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }

.section--alt { background: var(--bg-alt); }

.section__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section__label::before {
  content: '';
  width: 1.4rem;
  height: 2px;
  background: var(--accent);
}

.section__lede {
  opacity: .78;
  max-width: 58ch;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* ─── Nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.site-nav__wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__wordmark em,
.site-footer__wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  list-style: none;
}

.site-nav__links a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  opacity: .75;
  transition: opacity .15s;
}

.site-nav__links a:hover { opacity: 1; }

.site-nav__links [data-pricing-link] { display: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  opacity: 1 !important;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--accent-dk); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .12s, box-shadow .12s;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(27,27,25,.16);
}

.btn--primary:hover {
  background: var(--accent-dk);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(27,27,25,.18);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--secondary:hover { background: var(--primary); color: #fff; }

/* ─── Hero (home) ────────────────────────────────────────── */
.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

.hero__eyebrow::before {
  content: '';
  width: 1.4rem;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 21em;
  margin-bottom: 1.5rem;
}

/* trade words — each set in the typeface of its own demo */
.tw {
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}

.tw:hover {
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .14em;
}

.tw--deli       { font-family: 'Alfa Slab One', serif; font-weight: 400; font-size: .88em; color: #17603A; }
.tw--barber     { font-family: 'Ultra', serif; font-weight: 400; font-size: .88em; color: #7E2A1E; }
.tw--laundro    { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .96em; color: #0D6E76; }
.tw--spa        { font-family: 'Italiana', serif; font-weight: 400; font-size: 1.12em; color: #4E6152; }
.tw--restaurant { font-family: 'Libre Caslon Text', serif; font-weight: 700; font-size: .96em; color: #1C2B3A; }

.hero__note {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: clamp(.95rem, 1.8vw, 1.05rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: .78;
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* hero load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .7s cubic-bezier(.22,.9,.3,1) forwards;
  }
  .hero > :nth-child(1) { animation-delay: .05s; }
  .hero > :nth-child(2) { animation-delay: .15s; }
  .hero > :nth-child(3) { animation-delay: .3s; }
  .hero > :nth-child(4) { animation-delay: .42s; }
  .hero > :nth-child(5) { animation-delay: .54s; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ─── Work strip (home) ──────────────────────────────────── */
.work-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 2.5rem;
}

.work-item {
  display: block;
  text-decoration: none;
}

.work-item:nth-child(even) { transform: translateY(14px); }

.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--hairline);
  transition: transform .2s, box-shadow .2s;
}

.work-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(27,27,25,.16);
}

.work-item figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.work-item figcaption strong {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
}

.work-item figcaption span {
  opacity: .65;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
}

.work-more {
  margin-top: 2.5rem;
  font-weight: 600;
}

.work-more a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .1rem;
}

.work-more a:hover { color: var(--accent-dk); border-color: var(--accent-dk); }

/* ─── Ledger steps (home) ────────────────────────────────── */
.ledger { margin-top: 2.5rem; border-top: 1px solid var(--hairline); }

.ledger__row {
  display: grid;
  grid-template-columns: 5rem 1fr 2fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.ledger__num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--accent);
  line-height: 1;
}

.ledger__row h3 { color: var(--primary); }

.ledger__row p { font-size: .98rem; opacity: .82; }

/* ─── The two of us (home) ───────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 2.5rem;
}

.person { border-top: 2px solid var(--primary); padding-top: 1.25rem; }

.person h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: .35rem;
}

.person__role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}

.person a {
  display: block;
  width: fit-content;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: .8;
  margin-bottom: .35rem;
}

.person a:hover { opacity: 1; text-decoration: underline; }

/* ─── Pine band (home) ───────────────────────────────────── */
.band {
  background: var(--primary);
  color: var(--bg);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.band h2 {
  color: var(--bg);
  font-style: italic;
  font-weight: 400;
  max-width: 22em;
  margin-bottom: 1rem;
}

.band p {
  opacity: .82;
  margin-bottom: 2rem;
  max-width: 50ch;
}

/* ─── Template gallery — specimen plates ─────────────────── */
.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem) var(--gap);
  margin-top: 3rem;
}

.plate { display: block; text-decoration: none; }

.plate figure { margin: 0; }

.plate__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

.plate:hover .plate__thumb {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(27,27,25,.18);
}

.plate__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate__ph {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 1rem;
}

.plate figcaption {
  border-top: 2px solid var(--text);
  margin-top: 1rem;
  padding-top: .8rem;
}

.plate__meta {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plate__no { color: var(--accent); }

.plate__tag { color: var(--primary); }

.plate__name {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-top: .25rem;
}

.plate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .7rem;
}

.plate__chips { display: flex; gap: .4rem; }

.plate__chips i {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  border: 1px solid rgba(27,27,25,.2);
}

.plate__view {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.plate:hover .plate__view { text-decoration: underline; text-underline-offset: .2em; }

.gallery-note { margin-top: 3.5rem; opacity: .7; font-size: .92rem; }

.gallery-note a { color: var(--accent); font-weight: 600; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: 3rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* business cards — the thing we actually hand you */
.bcard {
  position: relative;
  background: #FFFDF8;
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 18px rgba(27,27,25,.1);
  padding: 1.6rem 1.75rem 1.5rem;
  max-width: 26rem;
}

.bcard:nth-child(1) { transform: rotate(-1.2deg); }
.bcard:nth-child(2) { transform: rotate(.8deg); margin-left: 1.5rem; }

/* strip of masking tape */
.bcard::before {
  content: '';
  position: absolute;
  top: -.7rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 5.5rem;
  height: 1.4rem;
  background: rgba(222, 201, 163, .55);
  border-inline: 1px dashed rgba(27,27,25,.12);
}

.bcard h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: .1rem;
}

.bcard__role {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.bcard a {
  display: block;
  width: fit-content;
  text-decoration: none;
  color: var(--text);
  margin-bottom: .3rem;
}

.bcard a:hover { text-decoration: underline; }

.bcard__tel {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary) !important;
}

.bcard__email { font-size: .9rem; opacity: .75; }

.contact-area {
  font-size: .9rem;
  opacity: .7;
  font-style: italic;
  margin-top: .5rem;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-top: 2px solid var(--text);
  padding-top: 1.5rem;
}

.contact-form__title {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  opacity: .85;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #FFFDF8;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  border-color: var(--primary);
}

.form-field textarea { resize: vertical; min-height: 130px; }

.contact-form .btn { align-self: flex-start; }

/* ─── Pricing — ruled ledger ─────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 3rem;
}

.pricing-card {
  border-top: 2px solid var(--text);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}

.pricing-card--featured { border-top-color: var(--accent); }

.pricing-card--featured::before {
  content: 'Most popular';
  position: absolute;
  top: -.85rem;
  right: 0;
  transform: rotate(1.5deg);
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .6rem;
}

.pricing-card__tier {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

.pricing-card__price {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

.pricing-card__price span {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 400;
  opacity: .6;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: .92rem;
}

.pricing-card__features li {
  padding-block: .55rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card__features li::before {
  content: '·';
  color: var(--accent);
  font-weight: 700;
  margin-right: .5rem;
}

.pricing-card .btn { align-self: flex-start; }

.pricing-faq { margin-top: 0; }

.faq-list { margin-top: 2rem; border-top: 1px solid var(--hairline); }

.faq-item {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--hairline);
}

.faq-item h3 {
  margin-bottom: .4rem;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
}

.faq-item p { font-size: .95rem; opacity: .8; }

/* ─── Footer — colophon ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  margin-top: auto;
}

.site-footer__wordmark {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.site-footer__emails {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  margin-bottom: 1rem;
}

.site-footer__emails a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: .75;
}

.site-footer__emails a:hover { opacity: 1; text-decoration: underline; }

.site-footer__area {
  font-size: .85rem;
  opacity: .72;
}

.site-footer__signoff {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: .9rem;
  color: var(--primary);
  margin-top: .35rem;
}

/* ─── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .work-row { grid-template-columns: repeat(2, 1fr); }
  .ledger__row { grid-template-columns: 3.5rem 1fr; }
  .ledger__row p { grid-column: 2; }
}

@media (max-width: 760px) {
  .plates { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .bcard:nth-child(2) { margin-left: 0; }
}

@media (max-width: 480px) {
  .site-nav__wordmark { font-size: 1rem; }
  .site-nav__links { gap: .6rem; }
  .site-nav__links a { font-size: .82rem; }
  .nav-cta { padding: .4rem .7rem; }
  .work-item:nth-child(even) { transform: none; }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
