/* Linen Fox — мастерская льняного текстиля */

:root {
  color-scheme: light;
  --bg: #f5efe4;
  --paper: #fbf7ef;
  --panel: #efe7d8;
  --ink: #3a3024;
  --muted: #655949;
  --line: #dccfb9;
  --sand: #dccdb0;
  --sage: #b9c4a8;
  --sage-deep: #5d6b4c;
  --clay: #c98f6b;
  --rust: #9a4f1e;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* едва заметное полотняное переплетение */
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 98, 66, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120, 98, 66, .03) 0 1px, transparent 1px 4px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7a3c14; }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 3px; }

svg { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- шапка ---------- */

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px; padding-top: 22px; padding-bottom: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; letter-spacing: .02em; }
.brand-tag { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .97rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px dashed transparent; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }

/* ---------- строчка-разделитель ---------- */

.stitch { border: 0; border-top: 2px dashed var(--line); margin: 0; }

/* ---------- первый экран ---------- */

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px 40px; padding-top: 44px; padding-bottom: 52px; }
.hero p { color: var(--muted); max-width: 34em; font-size: 1.08rem; }
.hero h1 { margin-bottom: .5em; }
.eyebrow { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 14px; }
.hero-pic { justify-self: center; width: 100%; max-width: 440px; }

.more { display: inline-block; margin-top: 8px; font-family: var(--serif); font-size: 1.05rem; }

/* ---------- разделы ---------- */

.section { padding-top: 56px; padding-bottom: 60px; }
.section-head { max-width: 40em; margin-bottom: 30px; }
.section-head h2 { margin-bottom: .45em; }
.section-head p { color: var(--muted); }

.tint { background: rgba(239, 231, 216, .6); }

/* ---------- работы ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .pic { background: var(--panel); border-bottom: 1px dashed var(--line); padding: 10px 14px; }
.card .pic svg { width: 100%; }
.card .txt { padding: 16px 18px 20px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* общие штрихи рисунков */
.ln { fill: none; stroke: #6b5a45; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ln-soft { fill: none; stroke: #a8967a; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.st { fill: none; stroke: #9a4f1e; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 5; }
.st-light { fill: none; stroke: #fbf7ef; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 5 5; }

/* ---------- о мастерской ---------- */

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: start; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 54px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px dashed var(--rust); color: var(--rust);
  font-family: var(--serif); font-size: 1.1rem; line-height: 35px; text-align: center;
}
.steps strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.12rem; }
.steps span { color: var(--muted); font-size: .96rem; }

/* ---------- уход ---------- */

.care { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.care li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.care svg { width: 54px; height: 54px; margin-bottom: 10px; }
.care h3 { font-size: 1.1rem; margin-bottom: 4px; }
.care p { color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- заметка в контактах ---------- */

.note {
  background: var(--paper); border: 2px dashed var(--sand); border-radius: 14px;
  padding: 24px 26px; max-width: 46em;
}
.note p { color: var(--muted); }
.note p:first-child { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }

/* ---------- текстовая страница ---------- */

.prose { max-width: 44em; }
.prose h1 { margin-bottom: .5em; }
.prose h2 { margin: 1.7em 0 .5em; font-size: 1.5rem; }
.prose .lead { font-size: 1.1rem; color: var(--muted); }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--rust); }

.memo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 8px; padding: 0; list-style: none; }
.memo li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.45; }
.memo b { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.25rem; color: var(--ink); }

/* ---------- подвал ---------- */

.foot { padding-top: 26px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--rust); }

/* ---------- 404 ---------- */

.lost { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 40px; padding-bottom: 56px; }
.lost svg { width: 100%; max-width: 320px; margin-bottom: 18px; }
.lost h1 { margin-bottom: .4em; }
.lost p { color: var(--muted); max-width: 30em; }

/* ---------- узкие экраны ---------- */

@media (max-width: 780px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 40px; }
  .hero-pic { order: -1; max-width: 340px; }
  .two { grid-template-columns: 1fr; }
  .section { padding-top: 42px; padding-bottom: 46px; }
  .note { padding: 20px; }
}

@media print {
  body { background: #fff; }
  .nav, .skip { display: none; }
}
