/*
Theme Name: Ihatov Remains
Theme URI: https://ihatovremains.com/
Author: Takaaki Suzuki
Description: Minimal single-page site for Takaaki Suzuki (ambient musician and composer) — a komorebi-inspired, cursor-reactive generative (WebGL) field. Its palette tracks the visitor's real sunrise/sunset (approx. location + embedded SunCalc, clock fallback), local weather (Open-Meteo: clear = stronger komorebi, rain/fog = deeper mist), and the season; nights turn dreamier with a silver moon-bloom, fireflies, star glints and a faint aurora. Includes a /listen page (Spotify embed + Apple Music) and cookieless Cloudflare Web Analytics. English-only, no build step, graceful fallbacks, prefers-reduced-motion respected.
Version: 1.5.0
Requires at least: 5.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ihatov-remains
*/ /* ============================================================ ihatov remains — generative atmosphere, English-only The living WebGL field is the hero; the name is a quiet signature. No build step. Open index.html directly. ============================================================ */ :root { --bg: #f3ecdd; /* bright, warm air */ --ink: #2b2a1e; /* deep warm charcoal-green text */ --muted: #54503c; /* quiet text — dark, AA on the cream */ --muted-hi: #2b2a1e; /* hover (darkens to ink) */ --amber: 150, 110, 40; /* warm accent (selection) */ --focus: #4a4326; /* dark focus ring for the light field */ } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { background: radial-gradient(120% 90% at 50% 0%, #fbf6ea, var(--bg) 60%); color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden; min-height: 100vh; min-height: 100svh; } /* Fallback when WebGL is unavailable: a static komorebi-like wash */ body.no-webgl { background: radial-gradient(52vmax 52vmax at 30% 18%, rgba(255,238,190,0.75), rgba(255,238,190,0) 64%), radial-gradient(56vmax 56vmax at 76% 84%, rgba(120,150,86,0.32), rgba(120,150,86,0) 70%), radial-gradient(120% 90% at 50% 0%, #fbf6ea, var(--bg) 60%); } body.no-webgl #field { display: none; } /* The generative field fills the viewport, behind everything */ #field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; } /* Soft scrim so the corner text stays legible over the moving field */ .scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(246,240,228,0.9) 0%, rgba(246,240,228,0.55) 14%, rgba(246,240,228,0) 40%), radial-gradient(120% 80% at 50% 120%, rgba(246,240,228,0.55), rgba(246,240,228,0) 60%); } /* ---------------------------------------------------------------- Layout: an editorial frame anchored to the bottom; open sky above ---------------------------------------------------------------- */ .frame { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.5rem; padding: clamp(1.6rem, 4.5vw, 3.4rem); } /* Name as a quiet signature, not a hero */ .mark { display: flex; flex-direction: column; gap: 0.45rem; } .mark__name { margin: 0; font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 420; font-variation-settings: "wght" 420, "opsz" 40; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.1; letter-spacing: 0.01em; color: var(--ink); } .mark__role { font-size: clamp(0.78rem, 1.2vw, 0.88rem); line-height: 1.45; letter-spacing: 0.025em; text-transform: none; color: var(--muted); } /* Links: a quiet single row */ .links { display: flex; flex-wrap: wrap; gap: 0.4rem clamp(1.3rem, 3.5vw, 2.6rem); align-items: baseline; } .links a { position: relative; color: var(--muted); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.04em; padding: 0.6em 0; transition: color 0.5s ease; } .links a::after { content: ""; position: absolute; left: 0; bottom: 0.2em; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); } .links a:hover, .links a:focus-visible { color: var(--muted-hi); } .links a:hover::after, .links a:focus-visible::after { transform: scaleX(1); } /* Entrance: the frame settles in gently */ @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .mark { animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; } .links { animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; } /* Keyboard focus — dark ring plus a light halo so it reads on any dapple */ :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(250, 246, 238, 0.85); border-radius: 3px; } ::selection { background: rgba(var(--amber), 0.25); color: var(--ink); } /* ---------------------------------------------------------------- Night palette: when the field goes dark (set by JS as body.field-dark), text & scrim flip to light. Text colour crossfades smoothly. ---------------------------------------------------------------- */ .mark__name, .mark__role, .links a { transition: color 1.4s ease; } body.field-dark { --ink: #f3ede1; --muted: #cbc3b4; --muted-hi: #ffffff; --focus: #e8c587; } body.field-dark .scrim { background: linear-gradient(to top, rgba(8,9,11,0.86) 0%, rgba(8,9,11,0.5) 14%, rgba(8,9,11,0) 40%), radial-gradient(120% 80% at 50% 120%, rgba(8,9,11,0.5), rgba(8,9,11,0) 60%); } /* ---------------------------------------------------------------- Bigger screens: name left, links right, on one baseline ---------------------------------------------------------------- */ @media (min-width: 720px) { .frame { flex-direction: row; align-items: flex-end; justify-content: space-between; } .links { justify-content: flex-end; padding-bottom: 0.1rem; } } /* ---------------------------------------------------------------- Reduced motion: JS freezes the field on a calm static frame. Also disable the entrance. ---------------------------------------------------------------- */ @media (prefers-reduced-motion: reduce) { .mark, .links { animation: none !important; } } /* ---------------------------------------------------------------- "Listen" page (/listen): the living field stays as the fixed background; the foreground is a centered, scrollable column with the Spotify + Apple Music embeds. Home page is untouched. ---------------------------------------------------------------- */ body.listen-page { overflow-y: auto; overflow-x: hidden; height: auto; min-height: 100%; } .frame.listen { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 1.25rem; padding-top: clamp(2rem, 8vh, 5rem); padding-bottom: clamp(2.5rem, 9vh, 5.5rem); } .frame.listen .mark { align-items: center; } .listen__players { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 1rem; margin: 0.25rem 0 0.5rem; } .listen__player { width: 100%; } .listen__player iframe { display: block; width: 100%; border: 0; border-radius: 12px; } .frame.listen .links { justify-content: center; } /* Apple Music link-card (Apple's web embed renders unreliably, so we link out cleanly) */ .listen__card { display: flex; flex-direction: column; gap: 0.3rem; width: 100%; padding: 1.1rem 1.3rem; border-radius: 12px; text-align: left; color: #f3ede1; text-decoration: none; background: rgba(18, 20, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.4s ease, border-color 0.4s ease; } .listen__card:hover, .listen__card:focus-visible { background: rgba(18, 20, 24, 0.72); border-color: rgba(255, 255, 255, 0.3); } .listen__card-title { font-size: 1rem; letter-spacing: 0.04em; } .listen__card-cta { font-size: 0.85rem; opacity: 0.82; }
/* Keep the centered Listen-page signature readable over every generated scene. */
body.listen-page .scrim {
  background:
    linear-gradient(to bottom, rgba(246,240,228,0.82) 0%, rgba(246,240,228,0.55) 12%, rgba(246,240,228,0) 32%),
    linear-gradient(to top, rgba(246,240,228,0.9) 0%, rgba(246,240,228,0.55) 14%, rgba(246,240,228,0) 40%),
    radial-gradient(120% 80% at 50% 120%, rgba(246,240,228,0.55), rgba(246,240,228,0) 60%);
}
body.listen-page.field-dark .scrim {
  background:
    linear-gradient(to bottom, rgba(8,9,11,0.82) 0%, rgba(8,9,11,0.52) 12%, rgba(8,9,11,0) 32%),
    linear-gradient(to top, rgba(8,9,11,0.86) 0%, rgba(8,9,11,0.5) 14%, rgba(8,9,11,0) 40%),
    radial-gradient(120% 80% at 50% 120%, rgba(8,9,11,0.5), rgba(8,9,11,0) 60%);
}

/* Night/continuity revision: cross-fade the legibility layers. */
.scrim,
body.field-dark .scrim,
body.listen-page .scrim,
body.listen-page.field-dark .scrim { background: none; }
.scrim::before, .scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: none;
}
body.field-ready .scrim::before, body.field-ready .scrim::after { transition: opacity 1.4s ease; }
body:not(.field-ready) .mark__name,
body:not(.field-ready) .mark__role,
body:not(.field-ready) .links a { transition: none; }
.scrim::before {
  opacity: 1;
  background:
    linear-gradient(to top, rgba(246,240,228,0.9) 0%, rgba(246,240,228,0.55) 14%, rgba(246,240,228,0) 40%),
    radial-gradient(120% 80% at 50% 120%, rgba(246,240,228,0.55), rgba(246,240,228,0) 60%);
}
.scrim::after {
  opacity: 0;
  background:
    linear-gradient(to top, rgba(8,9,11,0.86) 0%, rgba(8,9,11,0.5) 14%, rgba(8,9,11,0) 40%),
    radial-gradient(120% 80% at 50% 120%, rgba(8,9,11,0.5), rgba(8,9,11,0) 60%);
}
body.field-dark .scrim::before { opacity: 0; }
body.field-dark .scrim::after { opacity: 1; }
body.listen-page .scrim::before {
  background:
    linear-gradient(to bottom, rgba(246,240,228,0.82) 0%, rgba(246,240,228,0.55) 12%, rgba(246,240,228,0) 32%),
    linear-gradient(to top, rgba(246,240,228,0.9) 0%, rgba(246,240,228,0.55) 14%, rgba(246,240,228,0) 40%),
    radial-gradient(120% 80% at 50% 120%, rgba(246,240,228,0.55), rgba(246,240,228,0) 60%);
}
body.listen-page .scrim::after {
  background:
    linear-gradient(to bottom, rgba(8,9,11,0.82) 0%, rgba(8,9,11,0.52) 12%, rgba(8,9,11,0) 32%),
    linear-gradient(to top, rgba(8,9,11,0.86) 0%, rgba(8,9,11,0.5) 14%, rgba(8,9,11,0) 40%),
    radial-gradient(120% 80% at 50% 120%, rgba(8,9,11,0.5), rgba(8,9,11,0) 60%);
}
@media (prefers-reduced-motion: reduce) {
  body.field-ready .scrim::before, body.field-ready .scrim::after,
  .mark__name, .mark__role, .links a { transition: none; }
}

/* Artist revision: keep the signature unoutlined and part of the atmosphere.
   Broad scrims remain; no glyph halo or interpolated gray foreground. */
.mark__name, .mark__role, .links a { transition: none; }
.mark, .links, .listen__video-heading, .listen__surya-link,
.listen__streaming-title, .listen__services { text-shadow: none; }

/* Home's small orientation line belongs to the field, separate from the
   artist signature and the music invitation. */
.fieldnote {
  position: fixed;
  z-index: 1;
  top: clamp(1.6rem, 4.5vw, 3.4rem);
  left: clamp(1.6rem, 4.5vw, 3.4rem);
  max-width: min(30rem, calc(100vw - 3.2rem));
  margin: 0;
  font-size: clamp(.75rem, 1.05vw, .8125rem);
  line-height: 1.45;
  letter-spacing: .012em;
  color: #f3ede1;
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) .7s both;
}
/* One steady, feathered upper shade keeps the annotation legible through
   both directions of the scene cross-fade, without an outlined text box. */
body:not(.listen-page)::after {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 14rem;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8,9,11,.64) 0, rgba(8,9,11,.62) 6rem, rgba(8,9,11,0) 14rem);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .fieldnote { animation: none !important; }
}

/* Compact editorial headings; the artist's name keeps its signature face. */
.frame.listen { --listen-meta-size: .8125rem; }
.listen__streaming-title {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.015em;
}
.listen__service-link { min-height: 44px; }
.listen__video-heading h2 {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
  margin-bottom: .15rem;
}
.listen__video-heading p {
  font-size: .8125rem;
  line-height: 1.6;
  letter-spacing: .005em;
  max-width: none;
  text-wrap: pretty;
  color: var(--ink);
}
/* A feathered reading wash supports the paragraph, never the glyph contour.
   It follows the foreground immediately while the larger scene cross-fades. */
.listen__video-heading { position: relative; isolation: isolate; margin-bottom: .4rem; }
.listen__video-heading::before {
  content: "";
  position: absolute;
  inset: -1rem -1.5rem;
  z-index: -1;
  background: rgba(246,240,228,.45);
  filter: blur(24px);
  pointer-events: none;
}
body.field-dark .listen__video-heading::before { background: rgba(27,32,40,.45); }
.listen__caption-tools { width: 100%; max-width: 560px; text-align: right; margin: -.4rem 0 -.9rem; }
.listen__caption-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: .65rem 0 .65rem .75rem;
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.listen__caption-toggle:hover, .listen__caption-toggle:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.listen__caption-toggle[hidden] { display: none; }
/* Give the two service groups a little more vertical breathing room. */
.listen__services-title { margin-bottom: .35rem; }
.listen__downloads { margin-top: 1.5rem; }
/* Original short captions fit one line at normal sizes. Allow natural wrapping
   for enlarged text instead of clipping or shrinking it. No horizontal travel. */
.listen__caption { white-space: normal; overflow: visible; }
.listen__caption-text { display: block; }
.captions-enabled .listen__caption-text {
  animation: caption-breathe 15s ease-in-out infinite;
  /* Begin fully readable; offscreen/hidden-page pauses still preserve phase. */
  animation-delay: -3s;
  animation-play-state: paused;
}
@keyframes caption-breathe {
  0%, 100% { opacity: 0; transform: translate3d(0, .25rem, 0); }
  20%, 75% { opacity: 1; transform: translate3d(0, 0, 0); }
  90% { opacity: 0; transform: translate3d(0, -.15rem, 0); }
}
.captions-running .caption-in-view .listen__caption-text {
  animation-play-state: running;
}
/* Video playback, hover and focus do not cancel or restart the text cycle.
   Explicit Pause removes captions-enabled and shows the whole static text. */
@media (prefers-reduced-motion: reduce) {
  .captions-enabled .listen__caption-text {
    animation: none !important;
  }
  .listen__caption-tools { display: none; }
}
@media (forced-colors: active) {
  body:not(.listen-page)::after, .listen__video-heading::before { display: none; }
  .fieldnote { color: CanvasText; }
}

/* Context-loss / no-WebGL fallback at night: keep the light text readable on a dark wash
   (the daytime fallback wash stays as approved). */
body.field-dark.no-webgl {
  background:
    radial-gradient(52vmax 52vmax at 30% 18%, rgba(70,90,120,0.55), rgba(70,90,120,0) 64%),
    radial-gradient(56vmax 56vmax at 76% 84%, rgba(40,70,80,0.45), rgba(40,70,80,0) 70%),
    radial-gradient(120% 90% at 50% 0%, #182028, #0d1216 60%);
}
/* Credits — weather data attribution (Open-Meteo, CC BY 4.0). A quiet line under the signature row on Home (left-aligned with the frame on narrow screens, centred on wide ones); in flow at the end of Listen. Deliberately small (≈9 px). */
.credits { position: fixed; left: 0; right: 0; bottom: max(0.45rem, env(safe-area-inset-bottom)); margin: 0; padding: 0 clamp(1.6rem, 4.5vw, 3.4rem); z-index: 1; text-align: left; font-size: 0.56rem; line-height: 1.3; letter-spacing: 0.02em; color: var(--muted); opacity: 0.8; }
.credits a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: color 0.5s ease; }
.credits a:hover, .credits a:focus-visible { color: var(--muted-hi); }
@media (min-width: 720px) { .credits { text-align: center; } }
@media (max-width: 719px) { body:not(.listen-page) .frame { padding-bottom: calc(clamp(1.6rem, 4.5vw, 3.4rem) + 1.4rem); } }
body.listen-page .credits { position: static; margin: 0.6rem 0 0; padding: 0; text-align: center; }
