:root {
  --bg: #ffffff;
  --bg-alt: #f1f1ee;
  --ink: #0f0f0f;
  --muted: #55554f;
  --rule: #d8d8d2;
  --flash: #ffd60a;
  --flash-dark: #f0c800;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --news: "Old Standard TT", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.prose { max-width: 640px; }

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { background: var(--flash); padding: 0 5px; margin: 0 1px; }
.wordmark.small { font-size: 1.15rem; margin: 0; }
.masthead nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.masthead nav a:not(.btn) { text-decoration: none; }
.masthead nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Buttons and links */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 15px 28px;
  border: 2px solid var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--flash); color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--flash); }
.link { margin-left: 24px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { background: var(--flash); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.kicker {
  display: inline-block;
  background: var(--flash);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 24px;
}
h1, h2, h3 { line-height: 1.05; margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
h1 mark {
  background: linear-gradient(transparent 58%, var(--flash) 58%);
  color: inherit;
  padding: 0 4px;
  margin: 0 -4px;
}
.lede { font-size: 1.25rem; color: var(--muted); max-width: 30em; margin-bottom: 36px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }

/* Example newspaper */
.paper { margin: 0; }
.paper-inner {
  background: #f6f4ec;
  border: 2px solid var(--ink);
  padding: 22px 22px 26px;
  box-shadow: 10px 10px 0 var(--flash);
  font-family: var(--news);
}
.paper-head {
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  border-bottom: 3px double var(--ink);
  padding-bottom: 10px;
}
.paper-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 16px;
}
.paper-inner h2 { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 14px; line-height: 1.1; }
.paper-photo {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #dcd9cd, #dcd9cd 8px, #d2cfc2 8px, #d2cfc2 16px);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.paper-text { font-size: 0.9rem; line-height: 1.5; margin: 0; }
.paper figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 24px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.section-sub { color: var(--muted); margin-bottom: 40px; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 24px; }
.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--flash);
  font-weight: 800;
}
.steps h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 16px 0 10px; }
.steps p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 2px solid var(--ink); background: var(--bg-alt); }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.gallery-empty {
  grid-column: 1 / -1;
  border: 2px dashed var(--rule);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  margin: 0;
}

/* Rates */
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.rate {
  background: var(--bg);
  border: 2px solid var(--ink);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.rate-label { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.rate-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--flash);
  padding: 3px 10px;
  margin-bottom: 20px;
}
.rate-badge.muted { background: var(--bg-alt); }
.price { margin-bottom: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price strong { font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.price strong.text { font-size: 2.3rem; letter-spacing: -0.035em; line-height: 1.1; }
.price s { font-size: 1.4rem; color: var(--muted); }
.price span { font-size: 1rem; color: var(--muted); }
.rate-note { color: var(--muted); font-size: 1rem; }
.rate ul { list-style: none; padding: 0; margin: 8px 0 20px; border-top: 1px solid var(--rule); }
.rate li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 1rem; }
.rate li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 10px; height: 10px; background: var(--flash); border: 1.5px solid var(--ink); }
.rate-extra { font-size: 1rem; margin-bottom: 24px; }
.rate .btn { margin-top: auto; align-self: flex-start; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.contact-alt { color: var(--muted); font-size: 1rem; }
.contact-alt a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.contact-alt a:hover { background: var(--flash); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--flash); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 1rem; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1d6b2f; }
.form-status.err { color: #b3261e; }

/* Footer */
.footer { background: var(--ink); color: #d6d6d0; padding: 36px 0; font-size: 0.95rem; }
.footer p { margin: 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; }
.footer .wordmark { color: #fff; }
.footer .wordmark span { color: var(--ink); }
.footer a { margin-left: 18px; }
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: var(--flash); }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .contact-grid, .rates { grid-template-columns: 1fr; gap: 48px; }
  .paper { max-width: 420px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .masthead nav a:not(.btn) { display: none; }
  .rate { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .price strong { font-size: 3rem; }
  .price strong.text { font-size: 2rem; }
}
