@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ==========================================================================
   ROLLBACK PASS. ID8 is a front door to the tools right now -- not an
   agency site, not a résumé, not an AI company. One typeface (Inter),
   warm white + near black + one accent color. Five-step hierarchy, all
   the same family, nothing inventing its own capitalization or scale:

   1. ID8 (.hero-mark)            -- largest, the brand.
   2. Ideas in Motion (.hero-tagline) -- secondary, quiet.
   3. Section titles (.section-title) -- Tools / Contact, one shared rule.
   4. Tool names (.tool-module-name)  -- what you'd click.
   5. Descriptions / body (.hero-descriptor, .tool-module-desc, footer)
      -- smallest, dimmed.
   ========================================================================== */

:root {
  --paper: #fbfaf8;
  --ink: #14161a;
  --ink-dim: #62666f;
  --line: rgba(20, 22, 26, 0.12);
  --accent: #00a8cc;
  --accent-dim: rgba(0, 168, 204, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* Hero -- Level 1/2. No color block, no lockup graphic -- just the
   mark, the tagline, one quiet descriptor line. */
.hero {
  padding: 12vh 0 7vh;
}

.hero-mark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-tagline {
  margin: 0.3em 0 0;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--ink);
}

.hero-descriptor {
  margin: 0.8em 0 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-dim);
}

/* Section title -- Level 3. One rule, used by Tools and Contact. */
.section-title {
  margin: 0 0 1em;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.tools {
  padding: 3vh 0 5vh;
  border-top: 1px solid var(--line);
}

.tool-modules {
  display: flex;
  flex-direction: column;
}

/* Grid, not flex: a fixed two-column row (name | description) keeps the
   description column consistently right-aligned regardless of how long
   any given row's name-column content is (this matters more now that
   DEVIATE/CAMERA.ID8 pack two links into that first column) -- flexbox's
   space-between could wrap unpredictably per-row, grid's 1fr/auto columns
   can't. */
.tool-module {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 2em;
  padding: 1.1em 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.tool-module:first-child {
  padding-top: 0;
}

/* Single-link rows only (the <a class="tool-module"> ones) -- the whole
   row is one link, so hovering anywhere in it accents the name. Scoped to
   the anchor tag specifically so it doesn't also fire on the dual-version
   rows below, which are a plain <div> containing two separate links. */
a.tool-module:hover,
a.tool-module:focus-visible {
  color: var(--accent);
}

.tool-module-name {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  letter-spacing: -0.005em;
  text-decoration: none;
  color: inherit;
}

.tool-module-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-dim);
}

a.tool-module:hover .tool-module-name em,
a.tool-module:focus-visible .tool-module-name em {
  color: inherit;
}

.tool-module-desc {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* Dual-version rows (DEVIATE, CAMERA.ID8): current + older version on one
   line. tool-module-name here is an <a> (the current/dominant version,
   same size/weight as every other row's name); tool-module-secondary is
   a second, separate <a> right after it -- small, dimmed, still clickable,
   linking to the older version. */
.tool-module-name-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em;
}

a.tool-module-name:hover,
a.tool-module-name:focus-visible {
  color: var(--accent);
}

.tool-module-secondary {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
}

.tool-module-secondary:hover,
.tool-module-secondary:focus-visible {
  color: var(--accent);
}

/* "Password protected" tag -- same .card-tag pattern already used inside
   /dev/index.html (public/dev/styles.css), ported here as-is rather than
   invented fresh, just muted/neutral since it's a status note, not a
   category label like DEV's own Concept/Working/Experimental tags. */
.card-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25em 0.55em;
  border-radius: 3px;
  color: var(--ink-dim);
  background: var(--line);
}

/* Contact */
.contact {
  padding: 3vh 0 6vh;
  border-top: 1px solid var(--line);
}

.contact-email {
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.contact-email:hover,
.contact-email:focus-visible {
  border-bottom-color: var(--accent);
}

/* Footer -- exactly: ID8 / Ideas in Motion / by OATZ / email. Nothing
   else. */
.footer {
  padding: 4vh 0 8vh;
  border-top: 1px solid var(--line);
}

.footer-mark {
  margin: 0;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.footer-tagline {
  margin: 0.2em 0 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.footer-oatz {
  margin: 0.6em 0 0;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.footer-oatz a {
  color: var(--ink-dim);
  text-decoration: underline;
}

.footer-email {
  display: inline-block;
  margin-top: 0.9em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Mobile -- same page, tighter vertical rhythm only. */
@media (max-width: 720px) {
  .hero {
    padding: 8vh 0 5vh;
  }
  .tool-module {
    grid-template-columns: 1fr;
    row-gap: 0.15em;
    padding: 0.95em 0;
  }
}
