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

:root {
  color-scheme: light;
  --orange: #EB6100;
  --green: #07543C;
  --ink: #29372F;
  --paper: #FFFEFA;
  --pink: #FA97BC;
  --yellow: #FFE13C;
  --project: #FFF39C;
  --genre: #E2EEDB;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
svg { display: block; flex: 0 0 auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.page-width { width: min(100% - 40px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 8px; left: 12px; padding: 10px 16px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; isolation: isolate; background: var(--orange); }
.hero-backdrop { position: absolute; z-index: -1; bottom: 0; left: 0; width: 100%; height: 88px; background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "logo title" "intro intro"; align-items: center; column-gap: 16px; row-gap: 20px; padding-block: 28px 88px; color: white; }
.brand { grid-area: logo; display: block; border: 1px solid #FFFFFF80; }
.brand:focus-visible { outline-color: white; }
.brand-logo { width: 100%; height: auto; }
h1 { grid-area: title; min-width: 0; font-weight: 700; }
.project-wordmark { display: block; font-size: 19px; line-height: 1.2; }
.store-wordmark { display: block; margin-top: 4px; font-size: clamp(34px, 10.5vw, 58px); line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.hero-intro { grid-area: intro; max-width: 720px; font-size: 19px; font-weight: 700; line-height: 1.65; }
.hero-intro p { white-space: pre-line; }

.app-section { padding-block: 32px 56px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; color: var(--green); }
h2 { font-size: 28px; font-weight: 700; line-height: 1.4; }
.app-count { flex: 0 0 auto; font-size: 16px; font-weight: 700; }
.app-list { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; margin: 0; list-style: none; }
.app-list > li { min-width: 0; }
.app-list > li + li { border-top: 1px solid var(--orange); }
.app-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumbnail" "heading" "description" "action"; gap: 20px; padding-block: 28px; }
.app-list > li:first-child .app-card { padding-top: 0; }
.app-list > li:last-child .app-card { padding-bottom: 0; }
.app-thumbnail { grid-area: thumbnail; position: relative; width: 100%; aspect-ratio: 15 / 11; align-self: start; overflow: hidden; border: 1px solid #E2E6DE; border-radius: 10px; background: #F1F3EC; }
.thumbnail-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #788372; }
.thumbnail-placeholder svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.thumbnail-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.is-unpublished .thumbnail-image { filter: blur(48px); transform: scale(1.15); opacity: .55; }
.thumbnail-status { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; background: #FFFEFA26; }
.thumbnail-status > span { padding: 8px 16px; border: 1px solid #D4D8D3; border-radius: 24px; background: #FFFEFAF2; color: #576156; font-size: 14px; font-weight: 600; line-height: 1.5; }
.app-heading { grid-area: heading; min-width: 0; color: var(--green); }
.app-name { font-size: 24px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.app-team { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.app-genre { display: inline-block; max-width: 100%; margin-top: 12px; padding: 5px 12px; border-radius: 24px; background: var(--genre); font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.app-description { grid-area: description; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.open-app { grid-area: action; position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 62px; border-radius: 18px; background: var(--green); color: white; font-size: 20px; font-weight: 700; line-height: 1.4; transition: background-color .15s ease; }
.open-app:disabled { border: 0; background: #E0E3DF; color: #606960; opacity: 1; cursor: default; }
.launch-icon { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--green); }
.launch-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.load-status { padding-block: 28px; }
.retry-button { min-height: 44px; margin-top: 16px; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--green); color: white; }

.project-section { position: relative; padding-top: 64px; background: var(--project); scroll-margin-top: 24px; }
.project-wave { position: absolute; top: 0; left: 0; width: 100%; height: 64px; background: var(--paper); }
.project-inner { padding-block: 32px 24px; }
.project-inner h2 { margin-bottom: 20px; color: var(--green); font-size: 24px; }
.project-description { font-size: 16px; line-height: 1.85; }
.project-description p + p { margin-top: 20px; }
.project-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; }
.project-link { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 44px; color: var(--green); font-size: 14px; font-weight: 700; }
.project-link > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.project-link-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); }
.project-link-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { background: var(--orange); color: #102419; }
.footer-wave { width: 100%; height: 48px; }
.footer-inner { padding-block: 12px 32px; }
.footer-project { margin-bottom: 20px; font-size: 13px; font-weight: 600; }
.credits { display: grid; gap: 16px; font-size: 13px; line-height: 1.7; }
.credits > div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.credits dd { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 359px) {
  .hero-inner { grid-template-columns: 60px minmax(0, 1fr); gap: 20px 14px; }
  .store-wordmark { font-size: 34px; }
  .app-name { font-size: 22px; }
  .app-genre { padding-inline: 10px; }
}

@media (min-width: 680px) {
  .page-width { width: min(100% - 80px, 1120px); }
  .hero-backdrop { height: 100%; }
  .hero-inner { grid-template-columns: 124px minmax(0, 1fr); grid-template-areas: "logo title" "logo intro"; align-items: start; gap: 16px 32px; padding-block: 40px 100px; }
  .project-wordmark { font-size: 23px; }
  .store-wordmark { font-size: clamp(58px, 8vw, 88px); }
  .hero-intro { font-size: 19px; }
  .app-section { padding-block: 44px 72px; }
  .section-heading { margin-bottom: 32px; }
  h2 { font-size: 36px; }
  .app-count { font-size: 20px; }
  .app-card { grid-template-columns: 45% minmax(0, 1fr); grid-template-areas: "thumbnail heading" "description description" "action action"; gap: 20px 28px; padding-block: 32px; }
  .app-name { font-size: 30px; }
  .app-team { font-size: 16px; }
  .app-genre { font-size: 15px; margin-top: 12px; padding-inline: 18px; }
  .app-description { align-self: start; }
  .open-app { min-height: 64px; border-radius: 22px; font-size: 24px; }
  .launch-icon { width: 46px; height: 46px; }
  .project-section { padding-top: 80px; }
  .project-wave { height: 80px; }
  .project-inner { padding-block: 36px 24px; }
  .project-inner h2 { font-size: 30px; }
  .project-link { font-size: 16px; }
  .footer-wave { height: 64px; }
  .footer-inner { padding-block: 12px 32px; }
  .credits { grid-template-columns: 1fr 1.4fr 1.5fr; gap: 24px; }
}

@media (min-width: 960px) {
  .app-card { grid-template-areas: "thumbnail heading" "thumbnail description" "thumbnail action"; grid-template-rows: auto 1fr auto; column-gap: 32px; }
}

@media (min-width: 1040px) {
  .hero-inner { grid-template-columns: 152px minmax(0, 1fr); column-gap: 40px; padding-block: 48px 120px; }
  .project-wordmark { font-size: 28px; }
  .store-wordmark { font-size: 96px; }
  .hero-intro { max-width: 730px; font-size: 20px; }
  .app-section { padding-block: 48px 88px; }
  .section-heading { margin-bottom: 36px; }
  h2 { font-size: 44px; }
  .app-count { font-size: 24px; }
  .app-card { gap: 20px 40px; padding-block: 36px; }
  .app-name { font-size: 38px; }
  .app-team { margin-top: 8px; font-size: 18px; }
  .app-genre { font-size: 17px; }
  .app-description { font-size: 18px; line-height: 1.8; }
  .open-app { min-height: 70px; font-size: 28px; }
  .launch-icon { width: 50px; height: 50px; right: 10px; }
  .launch-icon svg { width: 28px; height: 28px; }
  .project-inner { padding-block: 40px 28px; }
  .project-inner h2 { font-size: 36px; }
  .project-description { font-size: 18px; }
  .footer-inner { display: grid; grid-template-columns: 1fr; gap: 0; }
  .footer-project { margin-bottom: 20px; font-size: 14px; }
  .credits { grid-template-columns: 1fr 1.5fr 1.6fr; gap: 40px; font-size: 14px; }
  .credits dd { font-size: 15px; }
}

@media (hover: hover) {
  .app-card[href]:hover .open-app { background: #086849; }
  .project-link:hover > span:first-child { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
