/* Hufford Works. Colours match the logo and the document kit. */
:root {
  --ink: #1B2B3A;
  --ink-soft: #2C4054;
  --brass: #B9772E;
  --brass-text: #8F5A1C;   /* brass dark enough to read as small text on cream */
  --brass-light: #D9A45A;
  --cream: #FAF7F2;
  --tint: #F4EFE7;
  --rule: #D9D2C5;
  --text: #2B2F36;
  --grey: #5B626D;
  --white: #FFFFFF;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brass-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
[id] { scroll-margin-top: 96px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 6px; }

.eyebrow {
  font: 700 0.76rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-text); margin: 0 0 18px;
}
.lede { font-size: 1.16rem; color: var(--grey); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 16px 26px; border-radius: 8px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream); transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.small { padding: 11px 18px; font-size: 0.94rem; }
.btn.brass { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
.btn.brass:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand img { height: 34px; width: auto; }
.top nav { display: flex; align-items: center; gap: 30px; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.top nav a:not(.btn):hover { color: var(--brass-text); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lede { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.facts li { padding: 26px 28px 28px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.facts strong { display: block; font: 700 1.12rem/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }
.facts span { color: var(--grey); font-size: 0.96rem; }

/* the picture beside the headline: a plain drawing of a site on a screen and a phone */
.mock { position: relative; padding: 0 34px 44px 0; }
.win { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 34px 60px -34px rgba(27, 43, 58, 0.45); }
.win-bar { height: 34px; background: var(--tint); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.win-bar i:first-child { background: var(--brass); }
.win-body { padding: 18px; display: grid; gap: 14px; }
.m-nav { display: flex; align-items: center; gap: 10px; }
.m-nav b { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); }
.m-nav s { height: 7px; width: 38px; border-radius: 4px; background: var(--rule); }
.m-nav s:first-of-type { margin-left: auto; }
.m-hero { background: var(--ink); border-radius: 8px; padding: 26px 22px; display: grid; gap: 10px; }
.m-hero s { height: 12px; border-radius: 6px; background: var(--cream); width: 78%; }
.m-hero s:nth-child(2) { width: 54%; }
.m-hero s:nth-child(3) { height: 7px; width: 66%; background: #6F7F8E; margin-top: 4px; }
.m-hero u { width: 92px; height: 26px; border-radius: 6px; background: var(--brass-light); margin-top: 10px; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-cards div { border: 1px solid var(--rule); border-top: 3px solid var(--brass); border-radius: 6px; padding: 12px 10px 14px; display: grid; gap: 7px; }
.m-cards s { height: 6px; border-radius: 3px; background: var(--rule); }
.m-cards s:first-child { background: var(--ink); width: 60%; height: 8px; }
.m-cards s:last-child { width: 70%; }
.m-nav s, .m-hero s, .m-hero u, .m-cards s, .phone s, .phone u { display: block; text-decoration: none; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 132px; background: var(--white);
  border: 6px solid var(--ink); border-radius: 24px; padding: 16px 10px 14px; display: grid; gap: 8px;
  box-shadow: 0 26px 40px -22px rgba(27, 43, 58, 0.6);
}
.phone .p-hero { background: var(--ink); border-radius: 6px; padding: 14px 10px; display: grid; gap: 6px; }
.phone .p-hero s { height: 7px; border-radius: 4px; background: var(--cream); width: 86%; }
.phone .p-hero s + s { width: 58%; }
.phone .p-hero u { height: 16px; width: 54px; border-radius: 4px; background: var(--brass-light); margin-top: 5px; }
.phone .p-row { border: 1px solid var(--rule); border-top: 3px solid var(--brass); border-radius: 5px; padding: 9px 8px; display: grid; gap: 5px; }
.phone .p-row s { height: 5px; border-radius: 3px; background: var(--rule); }
.phone .p-row s:first-child { background: var(--ink); width: 55%; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.band { background: var(--tint); border-block: 1px solid var(--rule); }
.head { max-width: 720px; margin-bottom: 48px; }
.head .lede { margin: 18px 0 0; }

/* packages */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--brass);
  border-radius: 10px; padding: 32px 30px 30px; display: flex; flex-direction: column;
}
.plan .price { font: 700 2.9rem/1 var(--sans); color: var(--ink); margin: 16px 0 12px; letter-spacing: -0.02em; }
.plan .for { color: var(--grey); margin: 0 0 22px; min-height: 3.2em; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 28px; line-height: 1.45; font-size: 0.98rem; }
.plan li::before {
  content: ""; position: absolute; left: 3px; top: 0.36em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass); transform: rotate(-45deg);
}
.plan li.plus { font-weight: 600; color: var(--ink); }
.plan .btn { margin-top: auto; }
.fine { color: var(--grey); font-size: 0.95rem; margin: 28px 0 0; max-width: 78ch; }

.addons { margin-top: 56px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.addons h3 { font-size: 1.5rem; font-weight: 400; }
.addons p { color: var(--grey); margin: 10px 0 0; }
.addons dl { margin: 0; border-top: 1px solid var(--rule); }
.addons dl div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.addons dt { color: var(--ink); }
.addons dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 26px 24px 26px; }
.steps li::before { content: counter(step); font: 400 2.5rem/1 var(--serif); color: var(--brass); display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--grey); font-size: 0.98rem; }

/* how I work */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.promises div { padding: 28px 0; border-top: 1px solid var(--rule); }
.promises h3 { margin-bottom: 8px; }
.promises p { margin: 0; color: var(--grey); }

/* about */
.about { background: var(--ink); color: #D5DBE1; }
.about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.about h2 { color: var(--cream); }
.about .eyebrow { color: var(--brass-light); }
.about p { font-size: 1.1rem; }
.about p:last-of-type { margin-bottom: 28px; }

/* questions */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font: 700 1.14rem/1.35 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.7rem/1 var(--sans); color: var(--brass); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; color: var(--grey); max-width: 68ch; }

/* contact */
.contact .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.reach { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.reach span { display: block; font: 700 0.76rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 7px; }
.reach a, .reach strong { font: 400 1.5rem/1.2 var(--serif); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.reach a:hover { color: var(--brass-text); }
form { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 34px; display: grid; gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
label small { font-weight: 400; color: var(--grey); font-size: 0.86rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--cream);
  border: 1px solid #BDB5A6; border-radius: 7px; padding: 13px 14px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.hp { position: absolute; left: -9999px; }
form .btn { justify-self: start; }
form .note { margin: 0; color: var(--grey); font-size: 0.9rem; }

/* footer */
footer { background: var(--ink); color: #AEB8C2; padding: 46px 0; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
footer img { height: 30px; width: auto; }
footer a { color: var(--cream); }
footer p { margin: 0; }

/* thank-you and not-found pages */
.plain { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 90px 0; }
.plain p { color: var(--grey); font-size: 1.14rem; margin: 20px auto 32px; max-width: 46ch; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero { padding: 56px 0 56px; }
  .hero .wrap, .about .wrap, .contact .wrap, .addons { grid-template-columns: 1fr; gap: 44px; }
  .mock { max-width: 520px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan .for { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  section { padding: 68px 0; }
}
@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 18px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .top .wrap { height: 64px; }
  .brand img { height: 27px; }
  .btn { width: 100%; }
  .top .btn, form .btn { width: auto; }
  .steps, .two { grid-template-columns: 1fr; }
  .mock { padding: 0 20px 36px 0; }
  .phone { width: 108px; }
  form { padding: 24px 20px; }
  .addons dl div { flex-direction: column; gap: 4px; }
  .reach a, .reach strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
