/* ------------------------------------------------------------------
   Takumi Capital Management, LP
   ------------------------------------------------------------------ */

:root {
  --ink:        #241c18;
  --ink-soft:   #4d453f;
  --muted:      #8b827c;
  --rule:       rgba(36, 28, 24, 0.16);
  --paper:      #faf9f7;
  --accent:     #3b2f27;

  --serif: "EB Garamond", "Adobe Garamond Pro", "Hiragino Mincho ProN",
           "Yu Mincho", Garamond, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Hiragino Sans", "Yu Gothic", Meiryo, Helvetica, Arial, sans-serif;

  --gutter: 6vw;
  --measure: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page shell -------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
}

.page--home    { background-image: url("../images/hero.jpg"); }
.page--about,
.page--team,
.page--contact { background-image: url("../images/plate.jpg"); }
.page--plain   { background-image: none; }

/* ---------- masthead ---------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px var(--gutter) 0;
}

.wordmark { display: block; line-height: 1; }
.wordmark:hover { text-decoration: none; }

.wordmark img {
  display: block;
  width: 400px;
  max-width: 56vw;
  height: auto;
}

.nav {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ---------- home -------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px var(--gutter) 14vh;
}

.hero__line {
  max-width: 40ch;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 31px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.hero__rule {
  width: 46px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  margin: 0 0 28px;
  border: 0;
}

/* home: keep the footer legible against the dark foreground ridge */

.page--home { position: relative; }
.page--home > * { position: relative; z-index: 1; }

.page--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(250, 249, 247, 0.92) 0%,
      rgba(250, 249, 247, 0.52) 8%,
      rgba(250, 249, 247, 0) 19%),
    linear-gradient(to top,
      rgba(250, 249, 247, 0.94) 0%,
      rgba(250, 249, 247, 0.55) 6%,
      rgba(250, 249, 247, 0) 15%),
    linear-gradient(100deg,
      rgba(250, 249, 247, 0.96) 0%,
      rgba(250, 249, 247, 0.90) 24%,
      rgba(250, 249, 247, 0.60) 44%,
      rgba(250, 249, 247, 0.16) 64%,
      rgba(250, 249, 247, 0) 80%);
  pointer-events: none;
  z-index: 0;
}


/* ---------- interior pages ---------------------------------------- */

.main {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 9vh var(--gutter) 12vh;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 56px;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 64px;
}

/* columns */

.cols {
  display: grid;
  gap: 48px 56px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cols--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.block h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.block h3 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.block p { margin: 0 0 14px; max-width: 40em; }
.block p:last-child { margin-bottom: 0; }

/* pull quotes */

.quotes {
  margin-top: 84px;
  padding-top: 44px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 44px 64px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.quote { margin: 0; }

.quote p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
}

.quote cite {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* contact */

.contact-block { font-size: 15px; line-height: 2; }
.contact-block .name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

/* disclosure page */

.legal { max-width: 46em; }
.legal h2 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 36px 0 14px;
}
.legal p { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }

/* ---------- footer ------------------------------------------------ */

.foot {
  padding: 26px var(--gutter) 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }

/* ---------- responsive -------------------------------------------- */

@media (max-width: 720px) {
  :root { --gutter: 24px; }

  .page { background-attachment: scroll; }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding-top: 30px;
  }

  .nav { gap: 22px; padding-top: 0; }
  .wordmark img { width: 290px; max-width: 84vw; }
  .hero { padding-top: 70px; padding-bottom: 12vh; }
  .quotes { margin-top: 56px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- lighter artwork on small / low-dpr screens -------------- */

@media (max-width: 900px) {
  .page--home    { background-image: url("../images/hero-mobile.jpg"); }
  .page--about,
  .page--team,
  .page--contact { background-image: url("../images/plate-mobile.jpg"); }

  /* portrait crop: light from the top instead of from the left */
  .page--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(250, 249, 247, 0.92) 0%,
      rgba(250, 249, 247, 0.52) 8%,
      rgba(250, 249, 247, 0) 19%),
    linear-gradient(to top,
      rgba(250, 249, 247, 0.94) 0%,
      rgba(250, 249, 247, 0.55) 6%,
      rgba(250, 249, 247, 0) 15%),
    linear-gradient(100deg,
      rgba(250, 249, 247, 0.96) 0%,
      rgba(250, 249, 247, 0.90) 24%,
      rgba(250, 249, 247, 0.60) 44%,
      rgba(250, 249, 247, 0.16) 64%,
      rgba(250, 249, 247, 0) 80%);
  pointer-events: none;
  z-index: 0;
}
