/* Engrave in One — site styles. Black and white; photos are shown in grayscale. */

:root {
  --black: #000;
  --ink: #161616;
  --paper: #F4F3F0;
  --white: #FFF;
  --grey: #666561;
  --grey-on-black: #A9A8A3;
  --line: #DCDAD5;
  --line-on-black: #2B2B2B;
  --error: #B42318;
  --wide: "wdth" 125;
  --script: "Kaushan Script", cursive; /* brand name only; swap here to try another script */
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--black { background: var(--black); color: var(--white); }
.section--white { background: var(--white); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.01em; font-variation-settings: var(--wide); }
.lede { font-size: 19px; color: var(--grey); max-width: 620px; }
.section--black .lede { color: var(--grey-on-black); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--black); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Photos: grayscale keeps mixed photos looking like one set */
.photo { position: relative; overflow: hidden; background: #1E1E1E; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 2px solid currentColor; border-radius: 0;
  font: 700 15px/1 Archivo, system-ui, sans-serif; letter-spacing: .04em; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn--solid { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--solid:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--dark:hover { background: transparent; color: var(--black); }
.btn--line { background: transparent; color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--white); }

/* Header */
.header { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--white); }
.header--solid { position: static; background: var(--black); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--script); font-weight: 400; font-size: 28px; line-height: 1.1; }
.brand__sub { margin-top: 5px; padding-left: .32em; font-size: 9px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.brand, .nav .btn, .nowrap { white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: max(600px, 100svh); display: flex; align-items: flex-end; color: var(--white); background: var(--black); }
.hero .photo { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.45) 100%); }
.hero__content { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 9vh, 104px); }
.hero h1 {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(60px, 9vw, 128px); line-height: 1.15;
  margin-bottom: 28px; overflow-wrap: anywhere;
}
.hero__sub { font-size: clamp(18px, 2vw, 22px); max-width: 560px; margin-bottom: 32px; color: #E8E7E3; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.intro__text { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; font-weight: 600; }
.intro__meta { color: var(--grey); border-left: 2px solid var(--ink); padding-left: 20px; }
.intro__meta strong { color: var(--ink); display: block; }

/* Gallery */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 36px; }
.head__note { font-size: 14px; color: var(--grey-on-black); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 8px; }
.gallery figure { margin: 0; position: relative; }
.gallery .photo { height: 100%; }
.gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 12px 14px; font-size: 14px; font-weight: 600; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); width: 100%; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: 1 / -1; }

/* Custom design */
.design { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: stretch; }
.design__text .h2 { margin-bottom: 18px; }
.design__text .lede { margin-bottom: 32px; }
.price { margin: 28px 0 24px; padding: 24px; background: var(--black); color: var(--white); }
.price p { color: var(--grey-on-black); font-size: 16px; }
.price p + p { margin-top: 10px; }
.price strong { color: var(--white); }
.price__from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px !important; color: var(--white) !important; font-size: 44px !important; font-weight: 800; line-height: 1; font-variation-settings: var(--wide); }
.price__from span { font-size: 16px; font-weight: 600; font-variation-settings: normal; color: var(--grey-on-black); }
.design__photo { margin: 0; min-height: 420px; }
.design__photo .photo { height: 100%; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ideas li { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); color: var(--grey); font-size: 15px; }
.ideas li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.ideas strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* What I engrave */
.engrave { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); margin-top: 40px; }
.engrave__col { padding: 32px 32px 8px 0; }
.engrave__col + .engrave__col { border-left: 1px solid var(--line); padding-left: 32px; }
.engrave h3 { font-size: 26px; margin-bottom: 8px; font-variation-settings: var(--wide); }
.engrave__col > p { color: var(--grey); margin-bottom: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.list li:last-child { border-bottom: 0; }
.list small { display: block; font-weight: 400; color: var(--grey); font-size: 15px; }
.ask { margin-top: 24px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.ask p { margin-bottom: 16px; }
.ask .btn { min-height: 46px; padding: 0 20px; font-size: 14px; }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; }
.steps li + li { border-left: 1px solid var(--line-on-black); padding-left: 28px; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 18px;
  font-size: 64px; font-weight: 800; line-height: 1; font-variation-settings: var(--wide);
  color: transparent; -webkit-text-stroke: 1.5px var(--white);
}
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--grey-on-black); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.about .photo { aspect-ratio: 4 / 5; }
.about__ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #8B8A86; font-size: 15px; height: 100%; border: 1px dashed #9A9893; background: #ECEAE6; }
.about__text p + p { margin-top: 16px; }
.about__text .h2 { margin-bottom: 20px; }

/* CTA band */
.cta { text-align: center; }
.cta .h2 { margin-bottom: 16px; }
.cta .lede { margin: 0 auto 32px; }

/* Footer */
.footer { background: var(--black); color: var(--grey-on-black); border-top: 1px solid var(--line-on-black); font-size: 15px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 36px 0; }
.footer .brand { color: var(--white); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Page heading (pricing) */
.page-head { padding: 72px 24px 40px; }
.page-head h1 { font-size: clamp(44px, 7vw, 96px); text-transform: uppercase; font-variation-settings: var(--wide); letter-spacing: -.015em; line-height: .95; margin-bottom: 16px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Pricing plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.plan { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); }
.plan--dark { background: var(--black); border-color: var(--black); color: var(--white); }
.plan__name { font-size: 26px; font-variation-settings: var(--wide); margin-bottom: 18px; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: clamp(56px, 7vw, 84px); font-weight: 800; line-height: 1; font-variation-settings: var(--wide); margin-bottom: 18px; }
.plan__from, .plan__per { font-size: 16px; font-weight: 600; font-variation-settings: normal; color: var(--grey); }
.plan--dark .plan__from, .plan--dark .plan__per, .plan--dark .plan__desc { color: var(--grey-on-black); }
.plan__desc { color: var(--grey); margin-bottom: 24px; max-width: 460px; }
.plan__list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 2px solid currentColor; flex: 1; }
.plan__list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.plan--dark .plan__list li { border-color: var(--line-on-black); }
.plan .btn { align-self: flex-start; }

.factors { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.factors li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--grey); }
.factors strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }

.deposit { max-width: 860px; }
.deposit__list { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: dep; }
.deposit__list li { counter-increment: dep; display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-on-black); font-size: 18px; }
.deposit__list li::before { content: counter(dep); flex: none; width: 28px; font-weight: 800; font-variation-settings: var(--wide); color: var(--grey-on-black); }
.deposit__note { margin-top: 20px !important; color: var(--grey-on-black); }

/* Quote type chooser */
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--white); border: 2px solid var(--line); text-decoration: none; cursor: pointer; transition: border-color .15s ease; }
.choice:hover { border-color: var(--grey); }
.choice[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice__title { font-weight: 800; font-size: 19px; font-variation-settings: var(--wide); }
.choice__price { font-weight: 700; font-size: 16px; }
.choice__note { font-size: 14px; color: var(--grey); }
.choose-hint { padding: 28px; border: 1px dashed #BDBBB6; color: var(--grey); text-align: center; }
.js-quote .form { display: none; }
.js-quote .form.is-active { display: block; }
.form__title { font-size: 24px; font-variation-settings: var(--wide); margin-bottom: 6px; }
.form__sub { color: var(--grey); margin-bottom: 28px !important; }

/* Quote page */
.quote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; padding: 72px 0 96px; }
.quote__intro { position: sticky; top: 32px; }
.quote__intro h1 { font-size: clamp(40px, 5.4vw, 72px); text-transform: uppercase; font-variation-settings: var(--wide); letter-spacing: -.015em; line-height: .95; margin-bottom: 20px; }
.quote__intro .lede { margin-bottom: 28px; }
.tips { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tips li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tips strong { display: block; }
.tips span { color: var(--grey); font-size: 15px; }

.form { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset + fieldset { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.form legend { float: left; width: 100%; font-weight: 800; font-size: 20px; margin-bottom: 18px; padding: 0; font-variation-settings: var(--wide); }
.form legend + * { clear: both; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 700; }
.field--full { grid-column: 1 / -1; }
.field .opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #BDBBB6; border-radius: 0; background: var(--white); color: var(--ink);
  font: 400 16px/1.4 Archivo, system-ui, sans-serif;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.field input[type="file"] { min-height: 0; padding: 10px; border-style: dashed; font-size: 15px; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 1.5px solid var(--ink); background: var(--white); font: 700 14px Archivo, system-ui, sans-serif; cursor: pointer; }
.help { font-weight: 400; font-size: 14px; color: var(--grey); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__error { font-weight: 600; font-size: 14px; color: var(--error); }
.form__foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__foot .help { flex: 1 1 240px; }
.form__error { margin-top: 16px !important; color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Thanks / 404 */
.done { min-height: 70vh; display: flex; align-items: center; padding: 96px 0; }
.done h1 { font-size: clamp(44px, 7vw, 96px); text-transform: uppercase; font-variation-settings: var(--wide); letter-spacing: -.015em; line-height: .95; margin-bottom: 20px; }
.done .lede { margin-bottom: 32px; }

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .intro, .about, .quote, .design { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .design__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote__intro { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps li, .steps li + li { border-left: 0; padding: 0; }
  .about .photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav a:not(.btn) { display: none; }
  .header .brand__name { font-size: 24px; }
  .header .brand__sub { font-size: 8px; }
  .header__row { gap: 12px; }
  .nav .btn { padding: 0 14px; font-size: 13px; }
  .engrave { grid-template-columns: minmax(0, 1fr); }
  .engrave__col, .engrave__col + .engrave__col { border-left: 0; padding: 28px 0 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .ideas, .steps, .factors, .choose { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: 48px 24px 32px; }
  .ideas li:nth-child(even) { padding-left: 0; border-left: 0; }
  .gallery { grid-auto-rows: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
