/* =========================================================================
   konnect — Design Tokens
   Fukuoka Earth & Urban White
   Variables here are the source of truth — never hardcode hexes in components.
   ========================================================================= */

/* ---- Webfonts (Google Fonts substitutes — see README Caveats) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;500;700&display=swap');

:root {
  /* ---- Color: Fukuoka Earth & Urban White -------------------------------- */
  /* Base */
  --urban-white: #F7F4EE;          /* never pure white */
  --urban-white-deep: #EFEAE0;     /* alt section background */

  /* Main accent — used as a POINT, never a plane */
  --brick: #B14A2E;                /* Deep Terracotta */
  --brick-deep: #8E3A23;           /* hover/press */
  --brick-soft: #D78A74;           /* disabled / quiet */

  /* Sub */
  --sand: #E4D8C3;                 /* Sandy Beige */
  --sand-light: #EFE7D7;
  --sand-deep: #C9B99B;

  /* Ink + neutrals */
  --ink: #2A2622;                  /* warm near-black */
  --ink-soft: #4A413B;
  --smoke: #6B6259;                /* secondary text */
  --mute: #9A9189;                 /* tertiary, captions */
  --line: rgba(42, 38, 34, 0.12);  /* hairlines */
  --line-strong: rgba(42, 38, 34, 0.24);

  /* Semantic — used sparingly; konnect avoids stoplight semantics */
  --success: #5C7A4A;
  --warn: #C28A2A;
  --error: var(--brick-deep);

  /* Foreground / background semantic shorthands */
  --bg: var(--urban-white);
  --bg-alt: var(--sand-light);
  --bg-card: var(--urban-white);
  --fg: var(--ink);
  --fg-2: var(--smoke);
  --fg-3: var(--mute);
  --fg-on-brick: var(--urban-white);

  /* ---- Type: families ---------------------------------------------------- */
  --font-display: 'Cormorant Garamond', 'Noto Serif JP', 'Times New Roman', serif;
  --font-body: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-jp-serif: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
  --font-jp-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  /* ---- Type: sizes ------------------------------------------------------- */
  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 17px;
  --t-lg: 20px;
  --t-xl: 26px;
  --t-2xl: 34px;
  --t-3xl: 48px;
  --t-4xl: 68px;
  --t-5xl: 96px;

  /* ---- Type: leading ----------------------------------------------------- */
  --lh-tight: 1.05;
  --lh-display: 1.15;
  --lh-snug: 1.4;
  --lh-body: 1.7;

  /* ---- Type: tracking ---------------------------------------------------- */
  --tr-tight: -0.01em;
  --tr-normal: 0;
  --tr-wide: 0.06em;
  --tr-caps: 0.12em;
  --tr-mark: 0.18em; /* for VOL.03 / DATE / FUKUOKA marks */

  /* ---- Spacing (base 8px) ----------------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  /* ---- Radii ------------------------------------------------------------- */
  --r-0: 0;
  --r-1: 2px;       /* cards */
  --r-pill: 999px;  /* tags only */

  /* ---- Borders ----------------------------------------------------------- */
  --border-hairline: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);
  --border-ink: 1px solid var(--ink);
  --border-brick: 1px solid var(--brick);

  /* ---- Shadow (sparingly) ------------------------------------------------ */
  --shadow-hairline: 0 1px 0 0 var(--line);
  --shadow-raised: 0 12px 32px -16px rgba(42, 38, 34, 0.12);

  /* ---- Motion ------------------------------------------------------------ */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 480ms;
}

/* =========================================================================
   Element defaults — semantic styles (importable as a baseline reset)
   ========================================================================= */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt' 1; /* tighter Japanese kerning */
}

::selection {
  background: var(--brick);
  color: var(--urban-white);
}

/* ---- Display + headings --------------------------------------------------- */

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-4xl);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-tight);
  color: var(--ink);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-3xl);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-tight);
  color: var(--ink);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-xl);
  line-height: var(--lh-snug);
  color: var(--ink);
  margin: 0;
}

h4, .h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: var(--lh-snug);
  color: var(--ink);
  margin: 0;
}

/* ---- Editorial: oversized number / volume mark --------------------------- */
.numeral {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--t-5xl);
  line-height: 1;
  color: var(--brick);
  letter-spacing: -0.02em;
}

/* ---- Eyebrow / mark labels (VOL.03 / FUKUOKA / 2026 SPRING) ------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--smoke);
}

.eyebrow-brick {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--brick);
}

/* ---- Body / paragraph ---------------------------------------------------- */

p, .body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  color: var(--fg);
  text-wrap: pretty;
  margin: 0;
}

.body-jp {
  font-family: var(--font-jp-sans);
}

.lead {
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--ink-soft);
}

.caption {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--smoke);
}

.micro {
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--mute);
  letter-spacing: var(--tr-wide);
}

/* ---- Quote / pull -------------------------------------------------------- */
.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-2xl);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: var(--tr-tight);
}

.pull-jp {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-style: normal;
  font-size: var(--t-xl);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

/* ---- Mono / code --------------------------------------------------------- */
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink);
}

/* ---- Links --------------------------------------------------------------- */
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* ---- HR (used as section divider) --------------------------------------- */
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

/* ---- Brand utilities ----------------------------------------------------- */

/* the konnect dot — bullet replacement */
.k-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brick);
  vertical-align: 2px;
  margin-right: 10px;
}

/* a brick eyebrow rule under headings */
.k-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--brick);
  margin: var(--s-3) 0;
}

/* a brick corner-mark for cards */
.k-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: var(--brick);
}
