/* Kidori's home page: a studio's page, typographic and quiet, light or dark as the reader's system is. Recursive's card
   keeps the game's own navy (style.css), so the work shows in its colors. */

:root {
    color-scheme: light dark;
    --bg: #FBFBFD;
    --surface: #FFFFFF;
    --text: #1D1D1F;
    --secondary: #5E5E66;
    --tertiary: #86868B;
    --line: rgba(0, 0, 0, 0.1);
    --button: #1D1D1F;
    --button-text: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 50px -24px rgba(0, 0, 0, 0.18);
    /* Recursive's colors */
    --night: #0E1A2C;
    --night-text: rgba(255, 255, 255, 0.72);
    --blue: #2F80ED;
    --green: #219653;
    --red: #EB5757;
    --yellow: #E1E377;
    --wrap: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B0C10;
        --surface: #15161B;
        --text: #F5F5F7;
        --secondary: #A1A1A8;
        --tertiary: #75757C;
        --line: rgba(255, 255, 255, 0.12);
        --button: #F5F5F7;
        --button-text: #0B0C10;
        --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 50px -24px rgba(0, 0, 0, 0.6);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
    border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: transparent;
    font: 600 16px/1 var(--font); text-decoration: none; transition: background-color .15s, transform .15s, opacity .15s;
}
.button:hover { background: var(--line); }
.button:active { transform: scale(0.98); }
.button.is-primary { background: var(--button); border-color: var(--button); color: var(--button-text); }
.button.is-primary:hover { opacity: 0.86; }
.button.is-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--night); }
.button.is-light:hover { opacity: 0.9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Header: the wordmark, then the work, the other language and the contact, as kidori.com has always had it */

.header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 60px; }
.wordmark { font: 700 21px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.header nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.header nav a { color: var(--secondary); text-decoration: none; transition: color .15s; }
.header nav a:hover, .header nav a.contact { color: var(--text); }
.lang { font-size: 13px; font-weight: 600; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }

/* Introduction */

.intro { padding: clamp(72px, 12vw, 168px) 0 clamp(56px, 8vw, 104px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--secondary); margin-bottom: 24px; }
/* The four colors of the first project's functions, as a quiet signature. */
.eyebrow::before { content: ""; width: 34px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--red) 50% 75%, var(--yellow) 75%); }
h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; }
.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--secondary); max-width: 34em; margin: 30px 0 40px; }

/* Many platforms, one standard: the stance, then what we make, then where it runs */

.craft { padding: 0 0 clamp(72px, 10vw, 128px); }
.craft-head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px clamp(32px, 6vw, 80px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 56px); }
.craft-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; }
.craft-head p { color: var(--secondary); font-size: clamp(17px, 1.7vw, 19px); margin: 0; }
.craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.craft-grid > div { padding: 28px 28px 30px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.craft-grid h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 10px; }
.craft-grid p { color: var(--secondary); font-size: 16px; margin: 0; }
/* Where the work runs: quiet tags, one per platform. */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.platforms li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--secondary); white-space: nowrap; }
@media (max-width: 900px) { .craft-head, .craft-grid { grid-template-columns: 1fr; } }

/* Work: one card per project, the coming ones outlined */

.work { padding: 0 0 clamp(72px, 10vw, 128px); }
.work h2, .contact-section h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; margin-bottom: 36px; }
.project { border-radius: 32px; }
.project + .project { margin-top: 22px; }
.project:not(.is-next) {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
    padding: clamp(28px, 5vw, 60px); background: var(--night); color: #FFFFFF; box-shadow: var(--shadow); overflow: hidden;
}
.project-icon { width: 72px; height: 72px; border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); margin-bottom: 26px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tertiary); margin-bottom: 12px; }
.project:not(.is-next) .kicker { color: rgba(255, 255, 255, 0.56); }
.project h3 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.project .tagline { font: 600 clamp(18px, 1.9vw, 21px)/1.3 var(--display); color: rgba(255, 255, 255, 0.56); margin-bottom: 20px; }
.project-text > p:not(.kicker, .tagline) { color: var(--night-text); max-width: 30em; margin-bottom: 30px; }
.text-link { color: #FFFFFF; font-weight: 600; font-size: 16px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.text-link:hover { text-decoration-color: #FFFFFF; }
/* The game's screen, rounded as the App Store screenshots round it (--corner, a fraction of its width). */
.project-screen { margin: 0; container-type: inline-size; }
.project-screen img { width: 100%; border-radius: calc(var(--corner) * 100cqw); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.project.is-next { padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 60px); border: 1.5px dashed var(--line); }
.project.is-next h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.project.is-next p:last-child { color: var(--secondary); margin: 0; max-width: 34em; }
@media (max-width: 860px) { .project:not(.is-next) { grid-template-columns: 1fr; } }

/* Contact */

.contact-section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); text-align: center; }
.contact-section h2 { margin-bottom: 16px; }
.contact-section p { color: var(--secondary); font-size: 19px; max-width: 30em; margin: 0 auto 30px; }
.email { display: inline-block; font: 700 clamp(26px, 4.4vw, 48px)/1.1 var(--display); letter-spacing: -0.03em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 6px; transition: background-size .25s; }
.email:hover { background-size: 100% 2px; }

/* Footer */

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--tertiary); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer nav a { color: var(--secondary); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer .legal { flex-basis: 100%; font-size: 12px; }

/* French runs longer. */
html[lang="fr"] h1 { font-size: clamp(40px, 6.4vw, 80px); max-width: 17ch; }
