/* Maru Ventures - teaser site
   Direction: photograph-led, centered, light between the pictures, very few words. */

:root {
  --ivory: #f4efe7;
  --stone: #e9e2d6;
  --ink: #1f1c19;
  --ink-soft: #49433c;
  --night: #100f0d;
  --on-night: #efe9df;
  --on-night-soft: rgba(239, 233, 223, 0.84);
  --brass: #9c7f52;
  --rule-light: rgba(31, 28, 25, 0.16);
  --rule-dark: rgba(239, 233, 223, 0.22);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brass); color: #fff; }

/* Small tracked capitals - the one "label" voice on the site */
.caps {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Masthead ---------- */

.masthead {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 30px var(--gutter);
  color: var(--on-night);
}
.masthead .left { justify-self: start; }
.masthead .right { justify-self: end; }

.masthead a { text-decoration: none; }

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  font-size: 25px;
}
.wordmark .logo {
  height: 1.06em;
  width: auto;
}

.text-link {
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.text-link:hover { border-color: currentColor; }

/* Plain pages get a dark masthead on ivory */
.masthead.on-light { position: relative; color: var(--ink); border-bottom: 1px solid var(--rule-light); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
}

.hero img,
.hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
  animation: settle 2.8s cubic-bezier(.2,.7,.2,1) both;
}

/* Only enough shade for the type: top for the masthead, bottom for the line */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0) 24%),
    linear-gradient(0deg, rgba(10,9,8,0.72) 0%, rgba(10,9,8,0.25) 38%, rgba(10,9,8,0) 60%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(48px, 10vh, 104px);
  text-align: center;
  animation: rise 1.6s .5s cubic-bezier(.2,.7,.2,1) both;
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 auto;
  max-width: 16em;
}

.hero .caps { display: block; margin-top: 28px; color: var(--on-night-soft); }

@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Ivory text sections ---------- */

.intro {
  padding: clamp(96px, 15vw, 200px) var(--gutter);
  text-align: center;
}

.intro p.statement {
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.22;
  margin: 0 auto;
  max-width: 19em;
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: clamp(40px, 5vw, 64px) auto;
}

.intro p.lede {
  font-size: clamp(22px, 1.8vw, 25px);
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 30em;
}

/* ---------- Full-bleed picture with principles ---------- */

.plate {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,9,8,0.94) 0%, rgba(10,9,8,0.7) 30%, rgba(10,9,8,0.15) 62%, rgba(10,9,8,0.05) 100%);
}

.principles {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  padding: 0 var(--gutter) clamp(56px, 9vh, 96px);
  text-align: center;
}
.principles h2 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-dark);
}
.principles p {
  margin: 0 auto;
  max-width: 17em;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(239, 233, 223, 0.92);
}

/* ---------- Where we are ---------- */

.residence {
  padding: clamp(96px, 14vw, 184px) var(--gutter);
  background: var(--stone);
}
.residence .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.residence h2 {
  font-weight: 300;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  margin: 0;
}
.residence p { margin: 0 0 1.1em; color: var(--ink-soft); }
.residence .caps { display: block; margin-top: 36px; color: var(--brass); }

/* ---------- Inquiries ---------- */

.inquiries {
  background: var(--night);
  color: var(--on-night);
  text-align: center;
  padding: clamp(104px, 15vw, 196px) var(--gutter);
}
.inquiries .caps { color: var(--on-night-soft); }
.inquiries h2 {
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.2;
  margin: 26px auto 0;
  max-width: 16em;
}

.button {
  display: inline-block;
  margin-top: 48px;
  padding: 18px 34px;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
  white-space: nowrap;
}
.button:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--on-night-soft);
  border-top: 1px solid var(--rule-dark);
  padding: 56px var(--gutter) 48px;
  text-align: center;
}
.site-footer .wordmark { font-size: 21px; color: var(--on-night); }
.site-footer nav { display: flex; justify-content: center; gap: 32px; margin: 28px 0 22px; }
.site-footer nav a { text-decoration: none; padding: 10px 0; transition: color .3s ease; }
.site-footer nav a:hover { color: var(--on-night); }
.site-footer small { font-family: var(--sans); font-size: 16px; letter-spacing: 0.06em; }

/* ---------- Plain document pages ---------- */

.doc { padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(96px, 12vw, 160px); }
.doc .inner { max-width: 720px; margin: 0 auto; }
.doc h1 { font-weight: 300; font-size: clamp(44px, 6vw, 68px); line-height: 1.05; margin: 0 0 14px; text-align: center; }
.doc .updated { text-align: center; color: var(--ink-soft); margin: 0 0 64px; }
.doc h2 { font-weight: 400; font-size: 28px; margin: 48px 0 10px; }
.doc p { color: var(--ink-soft); margin: 0 0 1em; }
.doc a { text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* ---------- Focus ---------- */

a:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; gap: 36px; }
  .plate { min-height: auto; padding-top: 52vh; }
  .residence .inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .button { font-size: 14.5px; letter-spacing: 0.08em; padding: 16px 20px; }
  .masthead { grid-template-columns: 1fr auto; padding-top: 24px; }
  .masthead .left { display: none; }
  .masthead .wordmark { justify-self: start; font-size: 20px; }
  .hero .caps { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero img, .hero .hero-video, .hero-copy { animation: none; }
}
