@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #171a17;
  --surface: #202420;
  --surface-raised: #272c26;
  --border: #3b433a;
  --text: #f2f0e5;
  --muted: #b9c0b3;
  --accent: #d6f489;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 1rem/1.65 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1180px, 100% - clamp(36px, 9vw, 120px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .6rem; left: .6rem; transform: translateY(-160%); background: var(--accent); color: var(--background); padding: .5rem 1rem; }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--border); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; justify-self: start; gap: .7rem; font-weight: 700; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 37px; aspect-ratio: 1; border: 1px solid var(--accent); border-radius: 9px; color: var(--accent); font-size: .84rem; letter-spacing: -.08em; }
.navigation { display: flex; align-items: center; gap: clamp(1rem, 3.5vw, 2.4rem); }
.navigation a, .languages a { display: inline-flex; align-items: center; min-height: 42px; color: var(--muted); font-size: .88rem; }
.navigation a:hover, .languages a:hover { color: var(--accent); }
.languages { display: flex; justify-self: end; gap: .25rem; }
.languages a { min-width: 36px; justify-content: center; font-weight: 600; }
.languages a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; }

.hero { border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; gap: clamp(28px, 6vw, 88px); padding-block: clamp(4rem, 9vw, 8.25rem); }
.label { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 1.05rem 0 1.35rem; font-size: clamp(4rem, 8.3vw, 8.15rem); line-height: .86; letter-spacing: -.085em; }
.hero h1 > span { display: block; }
.period { color: var(--accent); }
.hero-copy { max-width: 35rem; color: var(--muted); font-size: clamp(1.06rem, 1.65vw, 1.3rem); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 46px; padding: .62rem 1rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #161b11; font-size: .9rem; font-weight: 700; }
.button:hover { border-color: #ebffb8; background: #ebffb8; }
.button-outline { border-color: var(--border); background: transparent; color: var(--text); }
.button-outline:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.hero-mark { position: relative; container-type: inline-size; display: grid; place-items: center; overflow: hidden; width: min(100%, 445px); aspect-ratio: 1.07; justify-self: end; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(ellipse at 55% 66%, #333e28, transparent 73%), repeating-linear-gradient(0deg, transparent 0 31px, #d6f48912 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #d6f48912 31px 32px), #1c231b; }
.hero-mark span { position: absolute; font-size: 66cqw; font-weight: 700; line-height: 1; letter-spacing: -.12em; }
.hero-letter-k { color: var(--accent); transform: translate(-28%, -7%); }
.hero-letter-c { color: transparent; -webkit-text-stroke: 1.5px var(--accent); transform: translate(19%, 11%); }

.work-section, .addons-section { padding-top: clamp(3.5rem, 7vw, 6.75rem); }
.section-title { font-size: clamp(2.1rem, 4.8vw, 4.05rem); }
.work-section > .section-title { margin-bottom: 1.6rem; }
.work-grid, .addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.project { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.project-featured { display: grid; grid-template-columns: .85fr 1.15fr; margin-bottom: 1.15rem; }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: .9rem; padding: clamp(1.3rem, 3.3vw, 2.55rem); }
.project-featured .project-copy { justify-content: center; }
.project-copy h3 { font-size: clamp(1.85rem, 3.7vw, 3.15rem); }
.project-copy > p:not(.label), .section-heading p, .addon-tile p, .about-section > p, .contact-section p, .catalog > p { color: var(--muted); }
.project-copy .text-link { margin-top: auto; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.project-image, .guilded-art { width: 100%; aspect-ratio: 2.1; }
.fishing-image { height: auto; object-fit: cover; object-position: 50% 55%; background: #293625; }
.guilded-art { display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #514231, #23241d 75%); }
.guilded-art img { width: 79%; height: 86%; object-fit: contain; }

.deck-art { display: grid; place-items: center; min-width: 0; padding: clamp(1.1rem, 4vw, 3.2rem); background: radial-gradient(ellipse at 65% 85%, #5b6139, transparent 70%), #333d2d; }
.deck { width: min(100%, 410px); border: 1px solid #667055; border-radius: 13px; background: #191e19; color: #f2f0e5; box-shadow: 0 18px 45px #11181173; }
.deck-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; padding: .7rem .85rem; border-bottom: 1px solid #3b433a; font-size: .72rem; }
.deck-header > span { color: #b9c0b3; }
.deck-signal { display: inline-block; width: 7px; height: 7px; margin-right: .3em; border-radius: 50%; background: #d6f489; }
.deck-body { padding: .65rem .85rem .85rem; }
.deck-label { color: #b9c0b3; font-size: .7rem; }
.deck-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .3rem; }
.scene { min-width: 0; display: flex; flex-direction: column; gap: .25rem; min-height: 53px; padding: .43rem .55rem; border: 1px solid #414a3c; border-radius: 6px; background: #292f26; font-size: .65rem; }
.scene b { font-size: .78rem; line-height: 1; }
.scene.is-active { border-color: #d6f489; color: #d6f489; background: #313e24; }
.deck-audio { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; font-size: .63rem; }
.deck-audio span { flex: 1 1 auto; display: flex; justify-content: space-between; gap: .4rem; padding: .26rem .45rem; border-radius: 4px; background: #292f26; }
.deck-audio b { color: #d6f489; white-space: nowrap; }

.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.3rem; }
.section-heading p, .contact-section p { margin-top: .55rem; }
.addon-tile { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.addon-tile img { border-radius: 8px; flex: 0 0 48px; }
.addon-tile h3, .addon-tile h2 { font-size: 1.3rem; }
.addon-tile p { margin: .42rem 0 .55rem; font-size: .94rem; }
.about-section { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 1.5rem; margin-top: clamp(3.5rem, 7vw, 6.75rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--border); }
.about-section .label { margin-bottom: .7rem; }
.about-section > p { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.contact-section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(2.75rem, 6vw, 5.5rem); padding: clamp(1.3rem, 3vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); }
.contact-section h2 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); }
.contact-actions { margin: 0; }
.footer { padding-block: 1.45rem; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; font-size: .88rem; }
.footer-inner > span { margin-right: auto; }
.catalog { padding-block: clamp(3rem, 7vw, 6rem); }
.catalog h1 { margin: 1.2rem 0 .7rem; font-size: clamp(2.75rem, 7vw, 5.5rem); }
.catalog .addon-grid { margin-top: 2rem; }
.privacy section { max-width: 46rem; margin-top: 2rem; }
.privacy h2 { margin-bottom: .6rem; font-size: 1.5rem; }
.privacy section p, .privacy li { color: var(--muted); }
.privacy section p + p { margin-top: .6rem; }
.footer > p { width: min(1180px, 100% - clamp(36px, 9vw, 120px)); margin: .6rem auto 0; font-size: .88rem; }

@media (max-width: 740px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 3.75rem; }
  .hero-mark { justify-self: start; width: min(100%, 330px); aspect-ratio: 1.32; }
  .hero-mark span { font-size: 55cqw; }
  .project-featured, .about-section { grid-template-columns: 1fr; }
  .project-featured .project-copy { justify-content: start; }
}
@media (max-width: 550px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .65rem; }
  .navigation { grid-row: 2; grid-column: 1 / -1; gap: 1.4rem; }
  .work-grid, .addon-grid { grid-template-columns: 1fr; }
}
