/* Zeew — Zentangle & meditative drawing studio.
   Design notes: near-white paper, ink-slate palette, hairline borders,
   centered layouts and a square "tile" motif. Calm and monochrome,
   deliberately different from the rest of the portfolio. */

:root {
  --paper: #faf9f6;
  --paper-deep: #f1efe8;
  --ink: #1c1c1a;
  --muted: #5e5d57;
  --primary: #3a4664;   /* ink-slate — used by enhance.py */
  --accent: #8a93b5;    /* soft periwinkle — used by enhance.py */
  --line: #e3e0d6;
  --card: #ffffff;
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); margin: 0; }

a { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ---- Header ---- */
header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 30px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }

/* ---- Hero (centered) ---- */
.hero { text-align: center; padding: 86px 28px 64px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 3rem; max-width: 16ch; margin: 0 auto 22px; }
.hero p { font-size: 1.18rem; color: var(--muted); max-width: 56ch; margin: 0 auto 30px; }
.hero .rule { width: 54px; height: 2px; background: var(--accent); margin: 0 auto 26px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 13px 30px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--primary);
  transition: background .15s, color .15s;
}
.btn:hover { background: #2c3650; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- Sections ---- */
section { padding: 64px 0; }
section.tint { background: var(--paper-deep); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
section h2 { font-size: 2.1rem; margin-bottom: 16px; }
section p { color: var(--muted); }

/* image with hairline frame */
.plate { border: 1px solid var(--line); background: #fff; padding: 10px; }
.plate img { width: 100%; display: block; }

/* split row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .plate { order: 2; }
.split h2 { text-align: left; }

/* ---- Tile grid (square cards) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--card); padding: 32px 28px; }
.tile .num {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.tile h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tile p { font-size: 0.96rem; margin: 0; }

/* image card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; filter: grayscale(0.15); }
.card .card-body { padding: 20px 22px 24px; }
.label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}
.card h3 { font-size: 1.12rem; margin: 8px 0 8px; }
.card p { font-size: 0.92rem; margin: 0; }

/* ---- Prose ---- */
.prose { max-width: 66ch; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 42px 0 12px; }
.prose h3 { font-size: 1.22rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #34332e; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.quote {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--primary);
  max-width: 28ch;
  margin: 40px auto;
}

/* ---- CTA ---- */
.cta { text-align: center; padding: 72px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta h2 { font-size: 2rem; margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 26px; }

/* ---- Footer (enhance.py rebuilds) ---- */
footer { background: var(--paper); padding: 54px 0 32px; }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink); margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: var(--muted); text-decoration: none; display: block; margin: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom, .footer-meta {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 18px 28px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .plate { order: 0; }
  .tiles, .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 540px) {
  .tiles, .grid-3 { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* LOGO:start */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; color: var(--primary); letter-spacing: 0.02em; text-decoration: none; }
.brand-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--primary); }
.brand-icon path, .brand-icon circle, .brand-icon rect, .brand-icon polygon, .brand-icon line { vector-effect: non-scaling-stroke; }
.brand:hover .brand-icon { color: var(--accent); transition: color 0.15s ease; }
/* LOGO:end */

/* ENHANCE:start */
.hero {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: left;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid p,
.footer-grid a {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
  line-height: 1.5;
}
.footer-grid a:hover { color: var(--primary); }
.footer-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
  margin: 0;
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}
/* ENHANCE:end */
