/* ARAYASHIKI umbrella site — the company page at the domain root.
 *
 * Deliberately standalone: unlike tiengow.html, this page does NOT load
 * style.css (the game's stylesheet). The umbrella brand has to outlive
 * any one product, so it carries its own tokens and never inherits the
 * domino visuals. Product pages layer their own look underneath it.
 *
 * Palette is a quieter relative of the TienGow site's — same ink and
 * gold so the two read as one house, less felt-green warmth so the
 * umbrella doesn't look like a game page. */

:root {
  --ink: #0f0f17;             /* page ground, a shade under TienGow's --site-bg */
  --ink-raised: #16161f;      /* cards, lifted off the ground */
  --gold: #d9c9a3;
  --gold-dim: rgba(217, 201, 163, 0.55);
  --line: rgba(217, 201, 163, 0.16);
  --text: #f2efe8;
  --dim: rgba(242, 239, 232, 0.56);
  --dimmer: rgba(242, 239, 232, 0.34);

  --serif: "Hiragino Mincho ProN", "Songti TC", "Noto Serif TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
          "Segoe UI", sans-serif;

  --gutter: 24px;
  --measure: 1080px;
}

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

html {
  scroll-behavior: smooth;
  /* Clear the sticky nav, or an anchor jump parks the section heading
   * underneath it. Matches #site-nav's height. */
  scroll-padding-top: 68px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-pad { padding: clamp(72px, 12vw, 140px) 0; }

/* ------------------------------------------------------------------ nav */

#site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(15, 15, 23, 0.78);
  border-bottom: 1px solid var(--line);
}

#site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.brand-mark-svg { width: 34px; height: 34px; display: block; }

.brand-text {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--text);
}

.nav-links { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.1em; }
.nav-links a { color: var(--dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 13px; }
  .brand-text { display: none; }
}

/* ---------------------------------------------------------------- cover */

#cover {
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.cover-mark {
  width: clamp(120px, 22vw, 190px);
  height: auto;
  margin: 0 auto 36px;
  display: block;
}

#cover h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: 0.42em;
  /* letter-spacing pads the right edge; pull it back so the line stays centred */
  margin: 0 0 0 0.42em;
  color: var(--gold);
}

.cover-latin {
  font-size: clamp(11px, 2vw, 13px);
  letter-spacing: 0.55em;
  margin: 18px 0 0 0.55em;
  color: var(--dimmer);
  text-transform: uppercase;
}

.cover-lede {
  max-width: 30em;
  margin: 32px auto 0;
  color: var(--dim);
  font-size: clamp(14px, 2.2vw, 16px);
}

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

.section-head { margin-bottom: 48px; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.3em;
  margin: 0;
  color: var(--gold);
}

.section-head .en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--dimmer);
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------------------------------------------------------------- works */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px 26px;
  min-height: 260px;
  transition: border-color 0.25s, transform 0.25s;
}

/* Only live products lift on hover — a placeholder that reacts like a link
 * reads as broken rather than forthcoming. */
a.work-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }

.work-kicker {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.work-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0.16em;
  margin: 14px 0 0;
  color: var(--text);
}

.work-card .work-en {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dimmer);
  text-transform: uppercase;
  margin-top: 6px;
}

.work-card p {
  color: var(--dim);
  font-size: 14px;
  margin: 16px 0 0;
}

.work-foot {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.work-card.is-upcoming {
  border-style: dashed;
  border-color: rgba(217, 201, 163, 0.13);
}

.work-card.is-upcoming h3,
.work-card.is-upcoming p { color: var(--dimmer); }

.work-card.is-upcoming .work-foot { color: var(--dimmer); }

/* ---------------------------------------------------------------- about */

#about .wrap { max-width: 760px; }

#about p {
  color: var(--dim);
  font-size: clamp(14px, 2.2vw, 16px);
  margin: 0 0 20px;
}

#about .lead {
  font-family: var(--serif);
  font-size: clamp(17px, 3vw, 21px);
  line-height: 2;
  color: var(--text);
  letter-spacing: 0.06em;
}

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

#site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 12px;
  color: var(--dimmer);
  letter-spacing: 0.08em;
}

#site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

#site-foot a:hover { color: var(--gold); }
