/* ==========================================================
   Yako Works LLC — company site
   Editorial studio look: warm paper, hairline rules, a serif
   display face and one ember accent. No webfonts, no build.
   ========================================================== */

:root {
  color-scheme: light dark;

  --paper:      #FAF8F4;
  --paper-2:    #F2EFE8;
  --card:       #FFFFFF;
  --ink:        #16150F;
  --body:       #4A473D;
  --sub:        #7C776A;
  --line:       #E2DDD1;
  --line-soft:  #EDE9DF;
  --accent:     #C2521E;
  --accent-ink: #A9451A;
  --accent-wash:#FBEDE4;
  --ring:       rgba(194, 82, 30, 0.35);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, ui-serif, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1080px;
  --gut: clamp(20px, 5vw, 44px);
  --r: 14px;
  --r-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #131210;
    --paper-2:    #1A1815;
    --card:       #1C1A17;
    --ink:        #F5F1E8;
    --body:       #BDB6A8;
    --sub:        #8C8578;
    --line:       #2E2B26;
    --line-soft:  #262320;
    --accent:     #E8794A;
    --accent-ink: #F09468;
    --accent-wash:#2A1C15;
    --ring:       rgba(232, 121, 74, 0.4);
  }
}

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; text-wrap: pretty; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.06;
  text-wrap: balance;
}

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ring); color: var(--ink); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* --------------------------------------------------------- shared bits */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 100px;
  padding: 13px 24px;
  font-size: 15.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, background-color .16s ease,
              border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); color: #FFF8F3; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }

.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark svg { width: 30px; height: 30px; flex: none; }

/* The monogram flips with the theme: an ink tile on paper, a paper tile on
   ink. Both strokes are tokens, so the Y never lands on its own colour. */
.mk-tile { fill: var(--ink); }
.mk-y    { stroke: var(--paper); }
.mk-stem { stroke: var(--accent); }
.wordmark b {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.012em;
}
.wordmark .llc {
  font-weight: 500;
  color: var(--sub);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
  font-weight: 560;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav .nav__cta {
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
}
.nav .nav__cta:hover { border-color: var(--ink); background: transparent; }

@media (max-width: 640px) {
  .nav .nav__hide { display: none; }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 128px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

/* A soft ember bloom behind the headline, nothing more. */
.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(880px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 62%);
  opacity: .85;
  pointer-events: none;
  z-index: 0;
}

.hero .shell { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px 7px 11px;
  margin-bottom: 26px;
}
.hero__eyebrow .pin {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.display {
  font-size: clamp(42px, 7.2vw, 76px);
  max-width: 15ch;
  margin-bottom: 26px;
}
.display em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero__lede {
  font-size: clamp(17.5px, 2vw, 20px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ---------------------------------------------------------- sections */

.section { padding: clamp(60px, 9vw, 104px) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.section__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
}
.section__lede {
  max-width: 58ch;
  margin-top: 14px;
  font-size: 17px;
  color: var(--body);
}
.section__intro { margin-bottom: clamp(34px, 5vw, 52px); }

/* -------------------------------------------------------------- apps */

.apps { display: grid; gap: 18px; }

.app {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--line));
  box-shadow: 0 14px 34px -22px rgba(22, 21, 15, .45);
}

.app__icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  border: 1px solid var(--line);
  flex: none;
  object-fit: cover;
}

.app__copy { flex: 1 1 220px; min-width: 0; }
.app__name { font-size: 23px; margin-bottom: 3px; }
.app__platform { font-size: 13.5px; color: var(--sub); font-weight: 550; }
.app__body { font-size: 15.5px; margin-top: 7px; }

.app__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-left: auto;
}
@media (max-width: 620px) {
  .app__meta { margin-left: 0; width: 100%; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--body);
}
.tag .pin {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.app__link {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app__link:hover { text-decoration: underline; }
.app__link .arr { transition: transform .16s ease; }
.app__link:hover .arr { transform: translateX(3px); }

/* ----------------------------------------------------------- company */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) {
  .company { grid-template-columns: 1fr; }
}

.company__prose p + p { margin-top: 16px; }

.card--legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 26px 22px;
}
.card--legal h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
  padding: 20px 0 4px;
}
.facts-dl { margin: 0; }
.facts-dl div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.facts-dl dt {
  font-size: 14px;
  color: var(--sub);
  font-weight: 560;
  flex: none;
}
.facts-dl dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.facts-dl dd a { font-weight: 600; }

/* ----------------------------------------------------------- contact */

.contact-panel {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  border-radius: clamp(22px, 3vw, 30px);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.contact-panel h2 {
  color: var(--paper);
  font-size: clamp(28px, 4.4vw, 42px);
  margin-bottom: 16px;
}
.contact-panel p {
  max-width: 46ch;
  margin-inline: auto;
  font-size: 17px;
}
.mailto {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: clamp(16px, 2.6vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--paper) 35%, transparent);
  padding-bottom: 4px;
  transition: border-color .16s ease, color .16s ease;
}
.mailto:hover {
  color: #FFD9C6;
  border-bottom-color: #FFD9C6;
}

/* ------------------------------------------------------------ footer */

.footer { padding: 44px 0 56px; border-top: 1px solid var(--line); }
.footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer__legal {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.5;
}
.footer__legal b { color: var(--body); font-weight: 620; }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer nav a {
  font-size: 14px;
  font-weight: 560;
  color: var(--body);
  text-decoration: none;
}
.footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------- scroll reveal (JS) */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22,.7,.3,1);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- legal pages */

.legal { padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 96px); }
.legal .prose { max-width: 68ch; }
.legal h1 { font-size: clamp(34px, 5.5vw, 50px); margin-bottom: 12px; }
.legal .stamp { font-size: 14px; color: var(--sub); margin-bottom: 40px; }
.legal h2 {
  font-size: clamp(21px, 2.8vw, 26px);
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 650; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }
.legal .lede { font-size: 18.5px; color: var(--ink); }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 30px;
}
.legal .back:hover { text-decoration: underline; }

/* The section numeral sits on the dark contact panel, so it gets its own
   fixed ember rather than the theme token. */
.contact-panel__num {
  display: block;
  color: #F0996E;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------- 404 */

.notfound {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.notfound__mark { margin-bottom: clamp(40px, 8vw, 72px); }
.notfound__code {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.notfound h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: 20px;
}
.notfound__lede {
  font-size: clamp(17px, 2vw, 19px);
  max-width: 44ch;
  color: var(--body);
}
.notfound .hero__actions { margin-top: 32px; }
