/* css/styles.css — abearablecode.com. Same base as the Pigments site, with a warm honey accent from the teddy bear. */

:root {
  --bg: #101010;
  --text: #e9e4dc;
  --muted: #aaa39a;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #d9a35b;   /* honey, from the bear */
  --link: #e6b877;
  --card: rgba(255, 255, 255, 0.045);
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

p { color: var(--muted); }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header: identical to the app sites. */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
  color: #f6f3ed;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.88;
}

.nav-links a:hover { opacity: 1; color: #fff; }

.nav-toggle { display: none; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 28px 40px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

section:first-of-type { padding-top: 0; }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  /* Styled like the app sites' eyebrow line (e.g. "A COZY PUZZLE · IPHONE · …"), in the honey accent. */
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  color: var(--text);
}

h3 { color: var(--text); }

.lede {
  font-size: 1.2rem;
}

/* Intro: portrait beside "Hi, I'm Rumiya." */

.intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}

.portrait {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* The photo has a white studio background: a honey ring and a soft glow sit it on the dark page. */
  border: 6px solid #1c1a17;
  box-shadow: 0 0 0 2px var(--accent), 0 24px 70px rgba(0, 0, 0, 0.55);
}

.intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.intro p { font-size: 1.18rem; margin: 0; }

/* About the name */

.name-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.name-story figure { margin: 0; }

.name-story img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.text-block p { font-size: 1.15rem; }

.pull {
  font-size: 1.3rem !important;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 26px 0;
}

/* Apps */

.apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.app-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.app-card:hover {
  border-color: rgba(217, 163, 91, 0.5);
  background: rgba(217, 163, 91, 0.06);
  transform: translateY(-2px);
}

.app-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: block;
}

.app-card h3 { margin: 2px 0 8px; font-size: 1.35rem; }
.app-card p { margin: 0; }

.app-card .more {
  display: inline-block;
  margin-top: 14px;
  color: var(--link);
  font-weight: 700;
}

.app-card.pigments { background: linear-gradient(135deg, rgba(252, 81, 8, 0.12), rgba(255, 245, 55, 0.08), rgba(57, 168, 232, 0.12)), var(--card); }
.app-card.yuzulane { background: linear-gradient(135deg, rgba(11, 30, 35, 0.9), rgba(244, 180, 62, 0.12)), var(--card); }

.after-apps { margin-top: 36px; }
.after-apps p { font-size: 1.15rem; }

.thanks {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.sign-off {
  margin: 18px 0 0;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 28px 52px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: var(--muted);
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav { padding: 18px 28px; }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    display: block;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav.is-open .nav-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 28px;
    width: min(260px, calc(100vw - 56px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 16, 16, 0.98);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
    display: grid;
    gap: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav.is-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { border-radius: 6px; padding: 12px 14px; }
  .nav-links a:hover { background: var(--card); }

  main { padding-top: 44px; }
  .intro { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .portrait { width: 180px; height: 180px; }
  .name-story { grid-template-columns: 1fr; gap: 32px; }
  .apps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .app-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .app-card:hover { transform: none; }
}
