/* Renacer Enterprises
   Palette: whitewash, cobalt (azulejo), olive, sunrise gold, ink. */

:root {
  --white: #faf9f5;
  --paper: #f1efe8;
  --ink: #1f2522;
  --ink-soft: #4a524d;
  --line: #d9d6cc;

  --cobalt: #1f4b9a;
  --cobalt-tint: #e4ebf7;
  --olive: #5b6b3a;
  --olive-tint: #e8ebdc;
  --gold: #e3a52a;
  --gold-tint: #fbefd3;
  --sea: #1f7a7a;
  --sea-tint: #d9eeec;
  --night: #262a2e;
  --night-text: #e9e6dc;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
}

p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--cobalt); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.wordmark-sun { width: 1.35rem; height: 1.35rem; color: var(--gold); }

.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.hero-copy { padding-bottom: clamp(2rem, 5vw, 4.5rem); }

.hero-kicker {
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
  display: block;
}

.lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: background-color 160ms ease;
}
.button:hover { background: var(--cobalt); }

.link-quiet {
  color: var(--ink);
  font-weight: 500;
}

/* The sunrise */

.sunrise { line-height: 0; }
.sunrise svg { width: 100%; height: auto; display: block; }

.sunrise .sun { fill: var(--gold); }
.sunrise .rays line {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.55;
}
.sunrise .hill-far { fill: var(--olive); opacity: 0.55; }
.sunrise .hill-near { fill: var(--olive); }
.sunrise .cortijo rect { fill: var(--white); }
.sunrise .cortijo path { fill: var(--ink); }
.sunrise .cortijo rect:last-child { fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .sunrise .sun {
    transform-origin: 260px 262px;
    animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .sunrise .rays {
    transform-origin: 260px 262px;
    animation: dawn 1.8s ease-out 0.5s both;
  }
  @keyframes rise {
    from { transform: translateY(120px); }
    to { transform: translateY(0); }
  }
  @keyframes dawn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* Ventures */

.ventures { padding-top: clamp(3rem, 7vw, 6rem); }

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(1.5rem, 4vw, 3rem);
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p {
  margin-top: 0.75rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.plate {
  --plate-bg: var(--paper);
  --plate-fg: var(--ink);
  --plate-accent: var(--cobalt);
  --plate-muted: var(--ink-soft);
  background: var(--plate-bg);
  color: var(--plate-fg);
}

.plate-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.plate-name h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: var(--plate-accent); }
.plate-tag { margin-top: 0.5rem; color: var(--plate-muted); }

.plate-line {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.plate-body p:not(.plate-line) { max-width: var(--measure); }
.plate-body strong { font-weight: 600; }

.plate-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.plate-links a {
  color: var(--plate-fg);
  font-weight: 500;
  text-decoration-color: var(--plate-accent);
  text-decoration-thickness: 2px;
}
.plate-links a:hover { color: var(--plate-accent); }

.plate-status {
  justify-self: end;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--plate-accent);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  white-space: nowrap;
}

.plate-channel    { --plate-bg: var(--olive-tint);  --plate-accent: var(--olive); }
.plate-publishing { --plate-bg: var(--gold-tint);   --plate-accent: #9a6a0a; }
.plate-packmates  { --plate-bg: var(--cobalt-tint); --plate-accent: var(--cobalt); }
.plate-costa      { --plate-bg: var(--sea-tint);    --plate-accent: var(--sea); }
.plate-serial {
  --plate-bg: var(--night);
  --plate-fg: var(--night-text);
  --plate-accent: var(--gold);
  --plate-muted: #a9a89f;
}

/* About */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.about h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.about-story p { max-width: var(--measure); font-size: 1.125rem; }

.about-roles {
  border-top: 3px solid var(--gold);
  padding-top: 1.25rem;
  align-self: start;
}
.about-roles h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.about-roles dl { margin: 0; }
.about-roles dl > div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.about-roles dl > div:last-child { border-bottom: 0; }
.about-roles dt { font-family: var(--serif); font-size: 1.1rem; }
.about-roles dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* Contact */

.contact {
  background: var(--paper);
}
.contact h2,
.contact p {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.contact h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.contact p {
  margin-top: 1rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  font-size: 1.125rem;
}
.contact p a { font-weight: 500; }

/* Footer */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}
.foot p + p { margin-top: 0; }

/* Responsive */

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-copy { padding-bottom: 0; }
  .sunrise { max-width: 32rem; margin-top: 1rem; }

  .plate-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .plate-status {
    justify-self: start;
    order: -1;
  }

  .about { grid-template-columns: 1fr; }
}

@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .top { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .top nav { gap: 1.25rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .lede { font-size: 1.0625rem; }
  .plate-line { font-size: 1.2rem; }
}
