@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f9f5ea;
  --ink: #24291d;
  --olive: #394831;
  --orange: #a43a1f;
  --line: #d4cbbb;
  font: 16px/1.55 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
p { margin: 0; }
.shell { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.15rem; }
.header { border-bottom: 1px solid var(--line); }
.logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -.07em; text-decoration: none; }
.logo span { color: var(--orange); }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero, .offer { display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 6.5rem); }
.label { color: var(--orange); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: .95; letter-spacing: -.035em; margin: .65rem 0 1.3rem; }
h1 { font-size: clamp(3.4rem, 7.4vw, 7rem); max-width: 9ch; }
h1 em { color: var(--orange); }
h2 { font-size: clamp(2.45rem, 5vw, 4.2rem); }
.intro { font-size: 1.12rem; max-width: 36ch; margin-bottom: 1.5rem; }
.button { display: inline-flex; gap: 1.15rem; align-items: center; padding: .82rem 1.16rem; border-radius: .35rem; background: var(--olive); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #263322; }
.showcase { display: grid; place-items: center; min-height: 390px; padding: 2rem; background: radial-gradient(ellipse at 45% 35%, #efd2a6, #e3a67b); border-radius: .65rem; text-decoration: none; }
.sample { width: min(100%, 290px); background: #f8efd8; padding: 1.25rem; border: 1px solid #66563d; border-radius: .3rem; box-shadow: 8px 14px 0 #703a2330; transform: rotate(-7deg); transition: transform .2s ease; }
.showcase:hover .sample, .showcase:focus-visible .sample { transform: rotate(-3deg); }
.sample-label, .sample-foot { display: block; font-size: .76rem; font-weight: 700; }
.sample-label { letter-spacing: .11em; }
.sample strong { display: block; font: 3.9rem/.85 "Instrument Serif", Georgia, serif; margin: 1rem 0; }
.sample i { color: var(--orange); }
.sample-foot b { float: right; }
.scratch { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-bottom: .85rem; }
.scratch span { display: grid; place-items: center; aspect-ratio: 1; border-radius: .25rem; background: var(--olive); color: #faf0d6; font-size: 1.7rem; }
.how { background: #ede8d8; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 0; margin: 1.8rem 0; list-style: none; counter-reset: step; }
.steps li { border-top: 1px solid #a8a38f; padding-top: .9rem; counter-increment: step; }
.steps h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.steps h3::before { content: counter(step) ". "; color: var(--orange); }
.examples { max-width: 74ch; }
.offer { grid-template-columns: 1.2fr auto; }
.price { border: 1px solid var(--line); padding: 1.4rem; border-radius: .55rem; }
.price p { margin-bottom: .7rem; }
.price strong { font: 3.7rem/1 "Instrument Serif", Georgia, serif; }
.footer { border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .offer, .steps { grid-template-columns: 1fr; }
  .showcase { min-height: 320px; }
  .price { width: fit-content; }
}
@media (prefers-reduced-motion: reduce) { .sample { transition: none; } }

.portfolio-intro {
  padding-block: clamp(3.5rem, 10vw, 8rem);
}
.portfolio-intro h1 {
  max-width: none;
  font-size: clamp(2.85rem, 8vw, 7rem);
}
.portfolio-intro .intro { max-width: 54ch; }
.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.4rem;
}
.portfolio-section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.featured-mission {
  margin-top: 1.8rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: .55rem;
  background: var(--olive);
  color: var(--paper);
}
.featured-mission .label { color: #f5d0a6; }
.featured-mission h3 {
  margin: .45rem 0 .65rem;
  font: clamp(2.8rem, 6vw, 4.5rem)/1 "Instrument Serif", Georgia, serif;
}
.featured-mission p { max-width: 59ch; }
.featured-mission a:focus-visible { outline-color: var(--paper); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}
.portfolio-grid article {
  border-top: 1px solid #a8a38f;
  padding-top: 1rem;
}
.portfolio-grid h3 {
  margin: 0 0 .55rem;
  font: 2rem/1.05 "Instrument Serif", Georgia, serif;
}
.portfolio-grid .label { margin-bottom: .5rem; }
.portfolio-source { margin-top: 1rem; }
@media (max-width: 680px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
