/*
Theme Name: Graphic Ink
Theme URI: https://graphicink.it
Author: Graphic Ink
Description: Material-first Italian guide theme for painting brushes, ink and starter kits.
Version: 1.0.0
Text Domain: graphicink
*/

:root {
  --ink: #14100d;
  --paper: #f7f1e6;
  --paper-light: #fffdf8;
  --line: #d8ccba;
  --muted: #645b50;
  --blue: #255e8a;
  --red: #c94f3d;
  --olive: #667a42;
  --shadow: 0 20px 52px rgba(20,16,13,.09);
  --radius: 8px;
  --max: 1160px;
  --gutter: clamp(16px,4vw,40px);
  --font: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav, .wrap, .footer-inner { width: min(var(--max), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--red), var(--ink) 58%, var(--blue));
  box-shadow: inset 0 0 0 2px rgba(255,253,248,.72);
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.btn, button.btn, input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper-light);
  font: 750 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); }
.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  background: var(--ink);
  color: var(--paper-light);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,16,13,.94), rgba(20,16,13,.72) 54%, rgba(20,16,13,.3)),
    linear-gradient(0deg, rgba(20,16,13,.72), rgba(20,16,13,.08) 42%);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 2; padding-block: 92px 76px; }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.42); }
.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: 0; line-height: 1.08; overflow-wrap: anywhere; }
h1 { max-width: 820px; margin: 14px 0 18px; font-size: clamp(38px,7vw,64px); font-weight: 850; }
h2 { margin: 0 0 18px; font-size: clamp(28px,4vw,42px); }
h3 { margin: 0 0 10px; font-size: clamp(21px,2.4vw,28px); }
.lead { max-width: 720px; font-size: clamp(18px,2vw,20px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.section { padding-block: 70px; }
.split { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); gap: clamp(28px,6vw,72px); align-items: start; }
.band { background: var(--paper-light); border-block: 1px solid var(--line); }
.note, .care-note {
  border-left: 4px solid var(--red);
  padding: 14px 0 14px 18px;
  color: var(--muted);
}
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.tile, .tool, .author-box {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.tile { box-shadow: none; }
.tool label, .contact-form label { display: block; margin: 14px 0 6px; font-weight: 750; }
select, input, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 130px; }
.tool-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: #eef3ec;
  border: 1px solid #cbd8bf;
}
.comparison { width: 100%; border-collapse: collapse; background: var(--paper-light); }
.comparison th, .comparison td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.info-card {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper-light);
}
.step-list { counter-reset: gi-step; list-style: none; padding-left: 0; }
.step-list li {
  counter-increment: gi-step;
  margin: 14px 0;
  padding-left: 46px;
  position: relative;
}
.step-list li::before {
  content: counter(gi-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper-light);
  font-weight: 800;
  font-size: 14px;
}
.faq-block details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-block summary { cursor: pointer; font-weight: 800; }
.article { max-width: 820px; margin-inline: auto; padding-block: 68px; }
.article p, .article li { font-size: 18px; }
.article img, .feature-img { border-radius: var(--radius); margin: 24px 0; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.author-box { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 18px; align-items: center; margin: 28px 0; }
.author-box img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; margin: 0; }
.post-list { display: grid; gap: 22px; }
.site-footer { margin-top: 70px; background: var(--ink); color: var(--paper-light); }
.footer-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; padding-block: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--paper-light); }
.screen-reader-text { position: absolute; left: -9999px; }
@media (max-width: 860px) {
  .nav { padding-block: 14px; align-items: flex-start; }
  .nav, .nav-links, .footer-inner { display: flex; flex-direction: column; }
  .nav-links { align-items: flex-start; gap: 10px; }
  .hero { min-height: 560px; }
  .hero::before { background: linear-gradient(0deg, rgba(20,16,13,.9), rgba(20,16,13,.66)); }
  .split, .grid { grid-template-columns: 1fr; }
  .comparison { display: block; overflow-x: auto; }
  .author-box { grid-template-columns: 1fr; }
}
