/* timreddin.com — "arriving soon" landing page. Self-contained: no external fonts or scripts. */

:root {
  --bg: #f5efe3;          /* sail-cloth cream */
  --bg-deep: #ebe2d0;
  --ink: #0f2a43;         /* deep navy */
  --ink-soft: #4a5d70;
  --accent: #c0392b;      /* foul-weather red */
  --sea-1: #8fb3cf;
  --sea-2: #3d6f96;
  --frame: #0f2a43;
  --shadow: 0 30px 60px -25px rgba(15, 42, 67, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1d2e;
    --bg-deep: #081522;
    --ink: #f3ecdf;
    --ink-soft: #a9b8c6;
    --accent: #e0594b;
    --sea-1: #1d3d5a;
    --sea-2: #2b5880;
    --frame: #f3ecdf;
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  }
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 85% 0%, var(--bg) 0%, var(--bg) 45%, var(--bg-deep) 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) 24px 160px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Portrait with an offset outline frame */
.portrait {
  margin: 0;
  position: relative;
  width: min(78vw, 340px);
  animation: rise 900ms cubic-bezier(.2,.7,.2,1) both;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 1.5px solid var(--frame);
  border-radius: 28px;
  opacity: 0.35;
}
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.intro { animation: rise 900ms 120ms cubic-bezier(.2,.7,.2,1) both; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 9vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 26px auto 24px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  line-height: 1.3;
}

.lead, .sub { text-wrap: balance; }

.sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 999px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Desktop: photo right, text left */
@media (min-width: 900px) {
  .page {
    grid-template-columns: 1.1fr 1fr;
    justify-items: start;
    text-align: left;
    gap: 72px;
  }
  .intro { order: 1; }
  .portrait { order: 2; width: 420px; justify-self: end; }
  .rule { margin-left: 0; }
}

/* Sea along the bottom edge */
.sea {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}
.wave-back  { fill: var(--sea-1); opacity: 0.45; animation: drift 22s linear infinite; }
.wave-front { fill: var(--sea-2); opacity: 0.30; animation: drift 14s linear infinite reverse; height: 80%; }

.footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 22px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

@keyframes rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
