/*
Theme Name: nonspace
Theme URI: https://nonspace.site
Author: nonspace
Description: A minimal, curatorial one-page theme with a full-screen image slider.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nonspace
*/

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
/* Layout: a full-screen image slider with the heading floating at its centre, then a white room of hairline-ruled sections with a narrow label column on the left. */
:root {
  --bg: #FFFFFF;
  --ink: #141414;
  --muted: #6B6B6B;
  --line: #E3E3E3;
  --on-image: #FFFFFF;

  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --t-label: 0.6875rem;
  --t-body: 0.9375rem;
  --t-lead: clamp(1.25rem, 2.2vw, 1.625rem);
  --t-hero: clamp(2.25rem, 6.4vw, 5.5rem);
  --t-sub: clamp(0.95rem, 1.6vw, 1.25rem);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); font-weight: 400; line-height: 1.85; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.label { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.line-link { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity 0.2s; }
.line-link:hover { opacity: 0.45; }

/* hero slider */
.hero {
  position: relative; overflow: hidden; color: var(--on-image); background: #1C1D21;
  height: 100vh;
  height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  min-height: 520px;
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide.placeholder {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='220' height='220' fill='%23000' filter='url(%23n)' opacity='.35'/></svg>"),
    radial-gradient(120% 90% at 18% 8%, #8D9096 0%, #53555B 42%, #1C1D21 100%);
}
.scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.38), rgba(0,0,0,0.14) 40%, rgba(0,0,0,0.42)); pointer-events: none; }

.hero-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; }
.top img { display: block; height: 22px; width: auto; max-width: 100%; filter: brightness(0) invert(1); }
.top nav { display: flex; gap: 2rem; }
.top nav a { color: var(--on-image); transition: opacity 0.2s; }
.top nav a:hover { opacity: 0.55; }
.hero .label { color: var(--on-image); }

.hero-copy { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; padding-block: 5rem; }
.hero-copy .wrap { width: 100%; }
.float { animation: drift 9s ease-in-out infinite; text-shadow: 0 1px 28px rgba(0,0,0,0.3); }
.float h1 { max-width: 13em; margin: 0; font-size: var(--t-hero); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.float p { max-width: 30rem; margin: 1.75rem 0 0; font-size: var(--t-sub); font-weight: 300; line-height: 1.6; letter-spacing: 0.01em; opacity: 0.92; text-wrap: balance; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.caption { position: absolute; z-index: 2; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 2rem; max-width: 60%; }
.dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.25rem; display: flex; justify-content: center; gap: 0.25rem; }
.dots button { width: 36px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 13px; height: 2px; background: var(--on-image); opacity: 0.4; transition: opacity 0.3s; }
.dots button[aria-current="true"]::before { opacity: 1; }
.dots button:focus-visible { outline: 1px solid var(--on-image); outline-offset: 0; }

/* sections */
.section { border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem 4rem; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.prose { display: grid; gap: 1.5rem; max-width: 40rem; min-width: 0; }
.prose .lead { font-size: var(--t-lead); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; }
.prose .note { color: var(--muted); }

.space { min-width: 0; }
.space > p { color: var(--muted); margin-bottom: 2rem; }
.space ul { list-style: none; border-top: 1px solid var(--line); }
.space li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-size: var(--t-lead); font-weight: 300; letter-spacing: -0.01em; line-height: 1.4; }

.subscribe { min-width: 0; }
.subscribe > p { max-width: 28rem; font-size: var(--t-lead); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; }
form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.25rem 1.5rem; margin-top: 2.5rem; }
input[type="email"] { flex: 1 1 16rem; min-width: 0; max-width: 24rem; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0.7rem 0; }
input[type="email"]::placeholder { color: var(--muted); }
input[type="email"]:focus-visible { outline: none; border-bottom-width: 2px; }
.sub-btn { font: inherit; font-size: var(--t-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; padding: 0.8rem 1.75rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.sub-btn:hover { background: var(--ink); color: var(--bg); }
.status { flex-basis: 100%; min-height: 1.85em; color: var(--muted); font-size: 0.875rem; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 3rem 3.5rem; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid .label { display: block; margin-bottom: 0.4rem; }
.foot-grid a { overflow-wrap: anywhere; }
.copy { margin-top: 3.5rem; color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 760px) {
  .section .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .top nav { gap: 1.25rem; }
  .caption { max-width: 100%; bottom: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .slide { transition: none; }
  .line-link, .top nav a, .sub-btn { transition: none; }
}

.about-body { display: grid; gap: 1.5rem; min-width: 0; }
.prose .note:empty { display: none; }
