founders-break/public/css/style.css

341 lines
14 KiB
CSS

/* The Founder's Break
Brand tokens are lifted verbatim from onetouch.studio/public/css/variables.css
so this page reads as part of the same studio. One accent (emerald), one theme
(dark), and a two-step radius scale: surfaces 14px, controls 10px. */
:root {
--bg: #06060b;
--bg2: #0c0c14;
--surface: rgba(255, 255, 255, 0.03);
--surface2: rgba(255, 255, 255, 0.05);
--accent: #10b981;
--accent2: #34d399;
--accent3: #059669;
--text: #f1f0ff;
--muted: #8b89a6;
--fine: #9c9ab5; /* smallest text: lifted off --muted2 to clear WCAG AA */
--border: rgba(16, 185, 129, 0.12);
--border-hover: rgba(16, 185, 129, 0.35);
--hairline: rgba(255, 255, 255, 0.08);
--on-accent: #04140f; /* near-black on emerald. White scores 3.9:1 and fails AA. */
--r-surface: 14px;
--r-control: 10px;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
--shell: 1200px;
--gut: 2.5rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
color-scheme: dark;
scroll-behavior: smooth;
scroll-padding-top: 84px;
}
body {
background: var(--bg);
color: var(--text);
font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
font-size: 16px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); }
:focus-visible {
outline: 2px solid var(--accent2);
outline-offset: 3px;
border-radius: 4px;
}
.skip {
position: absolute; left: -9999px; top: 0; z-index: 200;
background: var(--accent); color: var(--on-accent);
padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r-control) 0; font-weight: 600;
}
.skip:focus { left: 0; }
/* ── Navigation ───────────────────────────────────────────── */
.nav {
position: fixed; inset: 0 0 auto 0; z-index: 100;
height: 64px;
display: flex; align-items: center; justify-content: space-between;
padding: 0 var(--gut);
background: rgba(6, 6, 11, 0.72);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border-bottom: 1px solid var(--border);
transition: background 0.3s var(--ease);
}
.nav.scrolled { background: rgba(6, 6, 11, 0.95); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-mark { opacity: 0.9; flex: none; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500;
white-space: nowrap; transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-cta {
background: var(--accent); color: var(--on-accent);
padding: 0.5rem 1.15rem; border-radius: var(--r-control);
font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent2); }
.nav-cta:active { transform: translateY(1px); }
/* ── Buttons ──────────────────────────────────────────────── */
.btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 0.85rem 1.9rem; border-radius: var(--r-control);
font-family: inherit; font-size: 0.95rem; font-weight: 600;
text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
background: linear-gradient(135deg, var(--accent), var(--accent3));
color: var(--on-accent);
box-shadow: 0 4px 22px rgba(16, 185, 129, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--accent2); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(1px); }
.btn-block { width: 100%; margin-top: 0.4rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.72; }
.btn[aria-busy="true"]::after {
content: ""; width: 15px; height: 15px; margin-left: 0.6rem;
border: 2px solid rgba(4, 20, 15, 0.3); border-top-color: var(--on-accent);
border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Hero: asymmetric split ───────────────────────────────── */
.hero {
max-width: var(--shell); margin: 0 auto;
min-height: 100dvh;
display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 4rem; align-items: center;
padding: calc(64px + 3rem) var(--gut) 4rem;
}
.eyebrow {
font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
text-transform: uppercase; color: var(--accent2); margin-bottom: 1.1rem;
}
.hero h1 {
font-size: clamp(2.6rem, 6.2vw, 4.5rem);
font-weight: 700; line-height: 1.02;
}
.hero-sub {
margin-top: 1.5rem; max-width: 46ch;
font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.4rem; }
.hero-figure { position: relative; }
.hero-figure img {
width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
border-radius: var(--r-surface); border: 1px solid var(--hairline);
}
.hero-figure::after {
content: ""; position: absolute; inset: 0; pointer-events: none;
border-radius: var(--r-surface);
background: linear-gradient(190deg, transparent 55%, rgba(6, 6, 11, 0.5));
}
/* ── Details: display-value strip ─────────────────────────── */
.details { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut) 6rem; }
.notice {
margin-bottom: 1.6rem; padding: 0.85rem 1.15rem;
border: 1px solid var(--border); border-left: 3px solid var(--accent);
border-radius: var(--r-control); background: var(--surface);
color: var(--text); font-size: 0.92rem;
}
.detail-grid {
display: grid; grid-template-columns: repeat(4, 1fr);
border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.detail { padding: 2rem 1.6rem; }
.detail + .detail { border-left: 1px solid var(--hairline); }
.detail dt {
font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
text-transform: uppercase; color: var(--muted); margin-bottom: 0.55rem;
}
.detail dd {
font-family: "Space Grotesk", sans-serif; font-weight: 600;
font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.25;
}
.detail dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.detail dd a:hover { color: var(--accent2); }
.detail-foot {
display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted);
}
.detail-foot .is-live { color: var(--accent2); font-weight: 600; }
.ics { color: var(--accent2); text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.ics:hover { border-bottom-color: var(--accent2); }
/* ── Pitch: full-bleed editorial band ─────────────────────── */
.pitch {
position: relative; isolation: isolate;
padding: 8rem var(--gut);
border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.pitch::before {
content: ""; position: absolute; inset: 0; z-index: -2;
background-image: var(--pitch-image);
background-size: cover; background-position: center;
}
.pitch::after {
content: ""; position: absolute; inset: 0; z-index: -1;
background: linear-gradient(180deg, rgba(6, 6, 11, 0.88), rgba(6, 6, 11, 0.94));
}
.pitch-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.pitch h2 {
font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 700;
text-wrap: balance;
}
.pitch p { margin-top: 1.5rem; color: var(--muted); font-size: 1.05rem; }
.pitch-kicker { color: var(--text) !important; font-weight: 600; }
/* ── What to expect: bento ────────────────────────────────── */
.expect { max-width: var(--shell); margin: 0 auto; padding: 7rem var(--gut); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 2.6rem; }
.bento {
display: grid; gap: 1rem;
grid-template-columns: 1.15fr 1fr 1fr;
grid-template-rows: auto auto;
}
.cell {
border: 1px solid var(--hairline); border-radius: var(--r-surface);
overflow: hidden; background: var(--surface);
}
.cell-photo { grid-row: span 2; border-color: transparent; background: none; }
.cell-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.cell-text { padding: 2rem 1.9rem; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.cell-text:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.cell-tint {
background:
radial-gradient(120% 130% at 100% 0%, rgba(16, 185, 129, 0.16), transparent 62%),
var(--surface);
}
.cell-wide { grid-column: span 2; }
.cell-text h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 0.65rem; }
.cell-text p { color: var(--muted); font-size: 0.96rem; max-width: 52ch; }
/* ── RSVP ─────────────────────────────────────────────────── */
.rsvp { padding: 0 var(--gut) 7rem; }
.rsvp-panel {
max-width: 580px; margin: 0 auto; padding: 2.8rem;
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-surface);
}
.rsvp-panel h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
.rsvp-sub { margin-top: 0.8rem; color: var(--muted); font-size: 0.96rem; }
form { margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input {
font-family: inherit; font-size: 0.98rem;
padding: 0.8rem 0.95rem; color: var(--text);
background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-control);
transition: border-color 0.2s var(--ease);
}
.field input::placeholder { color: var(--fine); }
.field input:hover { border-color: rgba(255, 255, 255, 0.16); }
.field input:focus { border-color: var(--accent); outline: 2px solid var(--accent2); outline-offset: 2px; }
.field-help { font-size: 0.8rem; color: var(--fine); }
.field-error { font-size: 0.8rem; color: #fca5a5; display: none; }
.field.has-error input { border-color: #f87171; }
.field.has-error .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 0.9rem; font-size: 0.88rem; color: #fca5a5; min-height: 1.2em; }
.fine { margin-top: 0.9rem; font-size: 0.78rem; color: var(--fine); text-align: center; }
.rsvp-done h3 { font-size: 1.4rem; font-weight: 700; }
.rsvp-done p { margin: 0.8rem 0 1.2rem; color: var(--muted); }
/* ── Footer ───────────────────────────────────────────────── */
.foot {
border-top: 1px solid var(--hairline);
padding: 3.2rem var(--gut);
max-width: var(--shell); margin: 0 auto;
display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
align-items: center; justify-content: space-between;
}
.foot-line { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.02rem; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; align-items: center; font-size: 0.87rem; }
.foot-meta a { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.foot-meta a:hover { color: var(--accent2); }
.foot-host { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-host img { opacity: 0.7; }
/* ── Scroll reveal ────────────────────────────────────────── */
/* Only hides when JS is running, so a failed script never eats the page. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
opacity: 1; transform: none;
transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
.hero { grid-template-columns: 1fr; gap: 2.8rem; min-height: 0; padding-top: calc(64px + 2.5rem); }
.hero-figure { order: -1; }
.hero-figure img { aspect-ratio: 16 / 10; }
.bento { grid-template-columns: 1fr 1fr; }
.cell-photo { grid-row: auto; grid-column: span 2; }
.cell-photo img { min-height: 220px; max-height: 320px; }
.cell-wide { grid-column: span 2; }
}
@media (max-width: 760px) {
:root { --gut: 1.25rem; }
.nav-link { display: none; }
.detail-grid { grid-template-columns: 1fr 1fr; }
.detail { padding: 1.4rem 1.1rem; }
.detail:nth-child(odd) { border-left: 0; }
.detail:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
.bento { grid-template-columns: 1fr; }
.cell-photo, .cell-wide { grid-column: auto; }
.pitch { padding: 5rem var(--gut); }
.expect { padding: 5rem var(--gut); }
.rsvp-panel { padding: 1.9rem 1.4rem; }
.foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}