/* Quillfeather Tree Care, direction d1 "paper-craft" (2026-12-01).
   sections.css: hero, services ledger, the signed note, storm band, customer cards, towns, contact card, footer. */

/* ---------- Hero: the picture inset in a frame on the paper field, half over a forest panel ---------- */

.hero {
  --print-w: min(640px, 52%);
  position: relative;
  overflow-x: clip;
  padding-block: clamp(1.75rem, 1rem + 3.4vw, 4rem) clamp(3.25rem, 2rem + 3vw, 4.5rem);
  background-image: radial-gradient(70% 90% at 0% 0%, rgba(255, 253, 246, 0.85), transparent 70%);
}

/* the forest panel: its left edge sits about 80 px inside the print's left edge (judge round 1, fix 2) */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(var(--gutter) + min(560px, 0.52 * (100% - 2 * var(--gutter)) - 80px));
  background-color: var(--forest);
  background-image: var(--hatch);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.25rem, 3.6vw, 3.5rem);
  align-items: center;
}

.hero-copy { max-width: 40rem; }

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.1vw, 4.3rem);
  font-weight: 640;
  letter-spacing: -0.028em;
  line-height: 1;
}

.hero h1 .accent {
  color: var(--forest);
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: auto;
}

.hero-lead {
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

/* their own trust words as a plain line under the one button: no box, so nothing looks like a second button */
.hero-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
}

.hero-trust::before {
  content: "";
  flex: none;
  width: 8px;
  height: 12px;
  margin-top: 0.38em;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero-figure { position: relative; margin-right: 6px; }

/* a second sheet of paper under the frame, set a little askew */
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7% -8px -14px 6%;
  background: var(--paper-deep);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow-sheet);
  transform: rotate(2.4deg);
}

.hero-figure .frame-photo { aspect-ratio: 4 / 3; }
.hero-figure img { object-position: 58% 50%; }

/* desktop: the copy keeps the page's left edge; the print column reaches out to the gutter at the right */
@media (min-width: 960px) {
  .hero-inner {
    max-width: none;
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    padding-right: var(--gutter);
    grid-template-columns: minmax(0, 1fr) var(--print-w);
  }
  .hero-figure { margin-right: 8px; }
}

@media (max-width: 959px) {
  .hero::before { top: auto; width: 100%; height: clamp(150px, 26vw, 240px); }
  .hero-figure::before { inset: 8% -6px -10px 5%; transform: rotate(1.8deg); }
}

/* ---------- Section heads ---------- */

.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }

/* ---------- Services: a ruled ledger, numbered like a printed card ---------- */

.services { padding-block: clamp(2.75rem, 1.8rem + 3.6vw, 5rem) var(--space-6); }

.services .section-head h2 { max-width: 20ch; }

.services-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }

/* phone crop 16:10 cuts only top and bottom of the 1024 x 800 print; set low so the trunk stays in (R15) */
.services-figure .frame-photo { aspect-ratio: 16 / 10; }
.services-figure img { object-position: 55% 72%; }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: svc;
  border-top: 2px solid var(--ink);
}

.service {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.45rem 0 1.55rem;
  border-bottom: 1px solid var(--rule);
}

.service::before {
  content: counter(svc, upper-roman);
  padding-top: 0.2rem;
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.service h3 { font-size: var(--step-2); margin-bottom: 0.45rem; }
.service p { max-width: 46ch; color: var(--ink-soft); }

/* phone: a narrow numeral gutter so the words run about 320 px wide (judge round 1, fix 5) */
@media (max-width: 599px) {
  .service { grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0 0.65rem; }
  .service::before { font-size: 1rem; letter-spacing: 0.04em; }
}

@media (min-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .services-figure .frame-photo { aspect-ratio: 4 / 5; }
  .services-figure img { object-position: 60% 50%; }
  .service { grid-template-columns: 3.75rem minmax(0, 1fr); padding: 1.6rem 0 1.7rem; }
}

/* ---------- How we work: Dana's note on a second sheet, the credentials beside it ---------- */

.about {
  overflow-x: clip;
  padding-block: var(--space-6);
  background: var(--paper-deep);
}

.about-grid { display: grid; gap: clamp(3rem, 5vw, 5rem); }

/* the second sheet stays inside the wrapper's own box even when turned (R14, round 1): the wrapper's padding is the
   room it peeks out into, and the tape sits inside the top padding */
.note-wrap { position: relative; padding: 18px 14px 18px 0; }

.note-wrap::before {
  content: "";
  position: absolute;
  inset: 32px 8px 9px 14px;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  transform: rotate(-1.4deg);
  box-shadow: var(--shadow-sheet);
}

@media (max-width: 959px) {
  .note-wrap { padding: 18px 12px 14px 0; }
  .note-wrap::before { inset: 30px 6px 6px 10px; transform: rotate(-0.9deg); }
}

.note {
  position: relative;
  padding: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem) clamp(1.4rem, 0.8rem + 3vw, 3.5rem) clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  background: var(--paper-light);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow-sheet);
}

/* masking tape holding the note */
.note::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 136px;
  height: 30px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.08);
  transform: translateX(-50%) rotate(-2.5deg);
}

.note h2 { font-size: var(--step-3); color: var(--forest-ink); }

.note-promise {
  margin-top: 1.1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 380;
  line-height: 1.28;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* the line the signature signs: set in Fraunces, close to the promise's size (judge round 1, fix 4) */
.note-walk {
  margin-top: clamp(1.4rem, 2.5vw, 1.9rem);
  padding-top: clamp(1.1rem, 2vw, 1.4rem);
  border-top: 1px dashed var(--rule-strong);
  color: var(--forest-ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.625rem);
  font-weight: 480;
  line-height: 1.3;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.signature { margin-top: clamp(1rem, 2vw, 1.35rem); }

.signature-name {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.45rem + 1.5vw, 2.6rem);
  font-weight: 330;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.swash { display: block; width: min(15rem, 80%); height: auto; margin-top: 0.15rem; color: var(--amber); }

.about-side h3 {
  font-size: var(--step-2);
  color: var(--forest-ink);
}

.history {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.credentials-title { margin-top: clamp(2.25rem, 4vw, 3rem); }

.credential-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.credential-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}

.credential-list li::before {
  content: "";
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: inset 0 0 0 0.85rem var(--forest);
}

.credential-list svg {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.62rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-light);
}

.credential-text {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 520;
  line-height: 1.3;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .about-side { padding-top: 18px; }
}

/* ---------- Storm help: a dark band cut with pinking shears ---------- */

.storm {
  position: relative;
  padding-block: calc(var(--space-6) * 0.9 + 10px) calc(var(--space-6) * 0.62 + 10px);
  background-color: var(--forest-deep);
  background-image: var(--hatch);
  color: var(--on-dark);
}

.storm::before,
.storm::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-repeat: repeat-x;
  background-size: 20px 10px;
}

.storm::before { top: 0; background-image: conic-gradient(from -45deg at 50% 100%, var(--paper-deep) 90deg, transparent 0); }
.storm::after { bottom: 0; background-image: conic-gradient(from 135deg at 50% 0, var(--paper) 90deg, transparent 0); }

.storm .label { color: var(--amber-light); }
.storm .label::before { background: var(--amber-light); }

/* the storm line given weight: about 1.25 times its round-1 size; the button follows the subline (fix 3) */
.storm h2 {
  max-width: 15ch;
  color: var(--on-dark);
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5.1rem);
  font-weight: 600;
  line-height: 1;
}

.storm-text {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  max-width: 34ch;
  color: var(--on-dark-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.storm .btn { margin-top: clamp(1.5rem, 2.6vw, 2.1rem); }

.storm .btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--paper);
}

.storm .btn-primary:hover { background: var(--amber-light); box-shadow: 2px 2px 0 var(--paper); }

/* ---------- Customers: two cards from their own site ---------- */

.reviews { padding-block: var(--space-6); }

.quotes { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); }

.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem) clamp(1.4rem, 0.9rem + 2.2vw, 2.75rem) clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  background: var(--paper-light);
  border: 1px solid var(--paper-edge);
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow-sheet);
}

.quote::before {
  content: "\201C";
  display: block;
  height: 2.6rem;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 5.25rem;
  font-weight: 700;
  line-height: 0.95;
}

.quote blockquote { flex: 1; margin-top: 0.4rem; }

.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.08rem + 0.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.42;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.quote figcaption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--rule-strong);
  color: var(--ink-soft);
  font-size: 1rem;
}

.quote-name { color: var(--ink); font-weight: 700; }

@media (min-width: 860px) {
  .quotes { grid-template-columns: 1fr 1fr; }
}

/* ---------- Towns: a ruled list on a faint contour of the valley ---------- */

.areas {
  padding-block: var(--space-6) clamp(3rem, 2rem + 3.6vw, 5rem);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, var(--paper) 0%, rgba(244, 239, 227, 0) 24%),
    repeating-radial-gradient(ellipse 120% 80% at 88% 42%, transparent 0 34px, rgba(47, 90, 36, 0.075) 34px 35px);
  border-top: 1px solid var(--rule);
}

.areas-inner { display: grid; gap: clamp(2rem, 4vw, 4.5rem); }

.areas-copy h2 { font-size: var(--step-3); }

.areas-text { margin-top: 1rem; max-width: 34ch; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

.town-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}

.town-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.75rem;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 248, 240, 0.72);
}

.town-list li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 16px;
  background: var(--forest);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* capped so the longest name keeps at least 28 px clear of the cell rule (judge round 1, fix 6) */
.town {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 560;
  line-height: 1.1;
  white-space: nowrap;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

@media (min-width: 600px) {
  .town-list { grid-template-columns: 1fr 1fr; }
  .town-list li { padding-inline: 1.1rem; }
  .town-list li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .town-list li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}

@media (min-width: 960px) {
  .areas-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
  .town-list li { padding-inline: 1.4rem; }
}

/* ---------- Contact: the back of the trade card ---------- */

.contact { padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem) calc(var(--space-6) + 10px); }

.contact-card {
  display: grid;
  gap: clamp(2.25rem, 4vw, 4rem);
  padding: clamp(1.75rem, 0.9rem + 4vw, 4.5rem);
  background: var(--paper-light);
  border: 2px solid var(--forest);
  outline: 1px solid var(--forest);
  outline-offset: -9px;
  box-shadow: var(--shadow-sheet);
}

.contact-main h2 { font-size: var(--step-3); max-width: 14ch; }

.contact-main .btn { margin-top: clamp(1.5rem, 3vw, 2rem); }

.contact-email { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

.contact-email-label {
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: clamp(1rem, 0.85rem + 0.8vw, 1.2rem);
  font-weight: 600;
  white-space: nowrap;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

.contact-hours h3 { font-size: var(--step-2); color: var(--forest-ink); }

.hours {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.hours li {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  align-items: baseline;
  gap: 0.7rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.hours li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  border-bottom: 2px dotted var(--rule-strong);
  transform: translateY(-0.3em);
}

.day { grid-column: 1; grid-row: 1; font-weight: 650; white-space: nowrap; }
.time { grid-column: 3; grid-row: 1; color: var(--ink-soft); text-align: right; white-space: nowrap; }

@media (min-width: 900px) {
  .contact-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
}

@media (max-width: 539px) {
  .contact-card { padding: 2rem 1.2rem 1.9rem; outline-offset: -7px; }
  .hours li { grid-template-columns: 9.6rem minmax(0, 1fr); gap: 0.6rem; }
  .hours li::after { display: none; }
  .time { grid-column: 2; text-align: left; white-space: normal; text-wrap: balance; }
}

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

/* the footer: same container as the sections, their logo mark beside the name, only words already on the page
   (judge round 1, fix 7). The mark is a CSS picture so the name is not read a second time from an alt text. */
.footer {
  --foot-pad: clamp(3.25rem, 2rem + 3.4vw, 5rem);
  position: relative;
  padding: calc(var(--foot-pad) + 10px) 0 var(--foot-pad);
  background-color: var(--forest-deep);
  background-image: var(--hatch);
  color: var(--on-dark);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 0);
  background-repeat: repeat-x;
  background-size: 20px 10px;
}

.footer-inner { display: grid; gap: 2.5rem 3rem; }

.footer-brand { display: flex; align-items: center; gap: 0.95rem; }

.footer-mark {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: url("../images/logo.png") center / 114% auto no-repeat;
  box-shadow: 0 0 0 2px rgba(244, 239, 227, 0.4);
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

.footer .label { margin-bottom: 0.85rem; color: var(--amber-light); }
.footer .label::before { background: var(--amber-light); }

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--on-dark-soft);
}

.footer-list li { white-space: nowrap; }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--on-dark);
  font-weight: 600;
  white-space: nowrap;
  text-decoration-color: var(--amber-light);
}

/* the about page's own heading (the proof site, 2026-12-01) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { margin: 0; max-width: 22ch; text-wrap: balance; }
.page-lede { margin: 0.9rem 0 0; max-width: 46ch; font-size: var(--step-1); text-wrap: pretty; }
.page-head .btn { margin-top: clamp(1.25rem, 2.6vw, 1.75rem); }

/* the footer's last line: their copyright and the site credit */
.footer-base { border-top: 1px solid currentColor; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: 1rem; }
.footer-copy { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.footer-credit { white-space: nowrap; }
