/* W Advisory — shared stylesheet.
   To reuse for W Equity, copy the site and change only the page text and links. */

:root {
  --paper: #f3efe6;
  --ink: #2b2a27;
  --ink-soft: #6b665c;
  --accent: #3d5a73;      /* aizome indigo: links and headline */
  --rust: #9c4a2a;        /* bengara: ensō and dividers only */
  --line: #cfc7b6;
  --stone: #e8e2d5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1b18;
    --ink: #e6e0d3;
    --ink-soft: #a39c8e;
    --accent: #8fb0c9;
    --rust: #c77a55;
    --line: #3a372f;
    --stone: #24231f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: "Shippori Mincho", Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.85;
}

main {
  max-width: 640px;
  margin: 0 auto 0 max(20px, 12vw);   /* slightly off-centre */
  padding: 72px 20px 64px 0;
  position: relative;
}
@media (max-width: 720px) {
  main { margin: 0 auto; padding: 48px 20px; }
}

.enso {
  position: absolute;
  top: 40px;
  right: -120px;
  width: 150px;
  height: 150px;
  color: var(--rust);
  opacity: 0.5;
  pointer-events: none;
}
.enso.small { width: 96px; height: 96px; right: -60px; }
@media (max-width: 960px) {
  .enso, .enso.small { right: 0; top: 24px; width: 80px; height: 80px; }
}

.brand {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 72px;
}
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { color: var(--accent); }

h1 {
  font-weight: 400;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 .w { color: var(--accent); }
.subhead {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0 0 48px;
}
h2 {
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
p { margin: 0 0 20px; }

/* Jump links under the intro */
.labels {
  list-style: none;
  padding: 0;
  margin: 8px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
}
.labels a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.labels a::after { content: " \2193"; font-size: 0.8em; }
.labels a:hover { border-color: var(--accent); }

/* Main buttons */
nav.main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}
nav.main a, .card {
  display: block;
  text-align: center;
  padding: 16px 10px;
  color: var(--ink);
  text-decoration: none;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 3px 9px 4px 7px;   /* gently uneven */
  letter-spacing: 0.05em;
}
nav.main a:hover, .card:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) { nav.main { grid-template-columns: 1fr; } }

/* Brush-stroke divider */
.stroke {
  display: block;
  width: 120px;
  height: 12px;
  margin: 64px 0 40px;
  color: var(--rust);
  opacity: 0.7;
}

section { scroll-margin-top: 24px; }

/* Article lists */
.writing { list-style: none; padding: 0; margin: 0 0 16px; }
.writing li { margin: 0 0 22px; }
.writing a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.writing a:hover { color: var(--accent); border-color: var(--accent); }
.writing span { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.writing .meta { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.note { color: var(--ink-soft); font-size: 0.95rem; }
.more { color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Client login cards */
.cards { display: grid; gap: 14px; margin: 0 0 24px; }
.card { text-align: left; padding: 20px 22px; }
.card strong { display: block; font-weight: 500; font-size: 1.15rem; }
.card span { color: var(--ink-soft); font-size: 0.95rem; }

footer {
  margin-top: 72px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer a { color: inherit; }
footer a:hover { color: var(--accent); }
