/* ==========================================================================
   Wynrose Investment Research
   Palette taken from the logo file:
     #CBCBCB  logo ground  -> bands (skyline strip, footer)
     #000000  wordmark     -> all text
     #7A0000  the dot      -> only accent, used sparingly

   LAYOUT RULE: every horizontal edge on the site comes from .wrap and
   nothing else. Never use the `padding` shorthand on an element that also
   carries .wrap — the shorthand resets padding-left/right to 0 and breaks
   the alignment. Use padding-block (or padding-top / padding-bottom).
   ========================================================================== */

:root {
  --page:   #D9D9D9;
  --band:   #CBCBCB;
  --ink:    #000000;
  --muted:  #565656;
  --hair:   #A8A8A8;
  --accent: #7A0000;

  --measure: 62ch;
  --gutter:  64px;   /* fixed, not vw — so browser zoom scales everything together */
  --maxw:    1180px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  font-size: 17.5px;
  line-height: 1.62;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------ the only grid -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- top bar -- */

.topbar {
  padding-block: 26px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  min-height: 62px;
}
.topbar-mark { font-size: 21px; letter-spacing: 0.055em; white-space: nowrap; }
.topbar-mark .dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ----------------------------------------------------------- nameplate -- */

.nameplate { padding-block: 76px 66px; }

.nameplate-word {
  font-size: 132px;
  line-height: 0.86;
  letter-spacing: -0.012em;
  margin: 0;
  font-weight: normal;
  white-space: nowrap;
}
.nameplate-word .dot { color: var(--accent); }

.rule-accent {
  border: 0;
  height: 2px;
  background: var(--accent);
  margin: 32px 0 22px;
  width: 100%;
}

.nameplate-line {
  font-size: 30px;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;   /* one line; released at narrow widths below */
}

/* ------------------------------------------------------- skyline strip --
   The photograph should read clearly. A light white wash sits over it so it
   sits back from the text without hiding it. */

.skyline {
  background: var(--band);
  height: 300px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.skyline picture { position: absolute; inset: 0; display: block; }
.skyline img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;   /* try "center bottom" for a true skyline */
  opacity: 0.52;
}
.skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.20);   /* the white fade */
}

/* ------------------------------------------------------------ sections -- */

.section { padding-block: 78px; }
.section + .section { border-top: 1px solid var(--hair); }

.section-title { font-size: 22px; font-weight: normal; margin: 0 0 20px; }

.page-head { padding-block: 56px 36px; }
.page-title {
  font-size: 52px;
  line-height: 1.06;
  margin: 0 0 20px;
  font-weight: normal;
  letter-spacing: -0.008em;
}
.page-head .rule-accent { width: 110px; margin-bottom: 0; }

/* ------------------------------------------------------ research index -- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
}
.filters button {
  font: inherit;
  font-size: 15px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 2px;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.015em;
}
.filters button:hover { color: var(--accent); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.note {
  padding-block: 26px;
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: start;
}
.note:first-of-type { border-top: 1px solid var(--hair); }

.note-meta { font-size: 14px; color: var(--muted); line-height: 1.5; letter-spacing: 0.02em; }
.note-meta .num { color: var(--accent); display: block; }

.note-body { max-width: 58ch; min-width: 0; }
.note-title { font-size: 21px; margin: 0 0 4px; font-weight: normal; line-height: 1.24; }
.note-tag { font-size: 14px; color: var(--muted); font-style: italic; margin: 0 0 9px; }
.note-summary { margin: 0; color: #333; }

.note-action { align-self: center; }

.btn-view {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 7px 20px;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn-view:hover { background: var(--accent); border-color: var(--accent); color: var(--page); }
.btn-view[aria-disabled="true"] { border-color: var(--hair); color: var(--muted); cursor: default; }
.btn-view[aria-disabled="true"]:hover { background: none; border-color: var(--hair); color: var(--muted); }

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

.footer {
  background: var(--band);
  border-top: 1px solid var(--hair);
  font-size: 15px;
}
.footer .wrap { padding-block: 54px 40px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-mark { font-size: 21px; letter-spacing: 0.055em; }
.footer-mark .dot { color: var(--accent); }
.footer-place { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; text-align: right; }
.footer-legal {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  justify-content: space-between;
  gap: 10px 26px;
  flex-wrap: wrap;
}
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--accent); }

/* ---------------------------------------------------------- breakpoints --
   Fixed steps rather than vw units, so browser zoom scales the whole page
   uniformly and nothing drifts out of alignment. */

@media (max-width: 1120px) {
  :root { --gutter: 48px; }
  .nameplate-word { font-size: 104px; }
  .page-title { font-size: 46px; }
}

@media (max-width: 860px) {
  :root { --gutter: 36px; }
  .nameplate { padding-block: 52px 46px; }
  .nameplate-word { font-size: 76px; }
  .nameplate-line { font-size: 26px; }
  .skyline { height: 240px; }
  .section { padding-block: 58px; }
  .page-head { padding-block: 42px 30px; }
  .page-title { font-size: 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; line-height: 1.6; }

  .topbar { padding-block: 20px 16px; min-height: 0; }
  .nav { gap: 22px; font-size: 15.5px; }

  .nameplate { padding-block: 40px 38px; }
  .nameplate-word { font-size: 58px; }
  .nameplate-line { font-size: 22px; white-space: normal; }
  .rule-accent { margin: 24px 0 18px; }

  .skyline { height: 190px; }

  .section { padding-block: 46px; }
  .page-title { font-size: 34px; }

  .note { grid-template-columns: 1fr; gap: 9px; padding-block: 24px; }
  .note-meta .num { display: inline; }
  .note-meta .num::after { content: " / "; color: var(--muted); }
  .note-body { max-width: none; }
  .note-action { justify-self: start; margin-top: 6px; }

  .footer .wrap { padding-block: 42px 32px; }
  .footer-top { flex-direction: column; gap: 22px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; text-align: left; }
  .footer-legal { flex-direction: column; gap: 8px; }
}

@media (max-width: 400px) {
  :root { --gutter: 20px; }
  .nameplate-word { font-size: 46px; }
  .nav { gap: 16px; font-size: 15px; }
}

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

@media print {
  body { background: #fff; }
  .topbar, .skyline, .footer-links { display: none; }
}
