/* East Bay Publishing Corporation — site stylesheet (editorial layout)
   Palette and type from the seal specification. Bay Navy is the only color
   used for type. Scene colors appear outside the mark only as small accents
   and in the horizon illustration. The double rule under the masthead is
   the seal's outer and fine rings, straightened. */

/* ------------------------------------------------------------ tokens */

:root {
  --navy:       #1E2B3B;
  --sun:        #E8A83A;
  --hill:       #C48F3C;
  --hill-light: #E2B76A;
  --water:      #2F6F9F;

  --bg:       #F7F4ED;
  --panel:    #FFFDF9;
  --text:     #1E2B3B;
  --muted:    #5F6874;
  --faint:    #8B9199;
  --rule:     #1E2B3B;
  --hair:     #DDD8CE;

  --solid:     #1E2B3B;
  --on-solid:  #FFFFFF;
  --band-bg:   #1E2B3B;
  --band-fg:   #FFFFFF;
  --band-muted:#B7C0CB;
  --band-hair: rgba(255,255,255,0.18);

  --ground: var(--bg);

  --measure: 60ch;
  --wrap: 1120px;
  --pill: 999px;

  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;

  --t-xs:  0.75rem;
  --t-sm:  0.9rem;
  --t-bd:  1.0625rem;
  --t-lg:  1.3125rem;
  --t-xl:  1.75rem;
  --t-2xl: clamp(2rem, 4vw, 2.75rem);
  --t-3xl: clamp(2.75rem, 7vw, 5.25rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #1E2B3B;
    --panel:    #26364B;
    --text:     #F1EEE6;
    --muted:    #B3BAC4;
    --faint:    #8791A0;
    --rule:     #F1EEE6;
    --hair:     #3A4A5F;

    --solid:     #F1EEE6;
    --on-solid:  #1E2B3B;
    --band-bg:   #152030;
    --band-fg:   #F1EEE6;
    --band-muted:#A9B3BE;
    --band-hair: rgba(255,255,255,0.14);

    --ground: #1E2B3B;
  }
}

/* ------------------------------------------------------------ base */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-bd);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif, .quote {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}

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

a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--solid); color: var(--on-solid); padding: var(--s-2) var(--s-3); z-index: 20; }
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: 44rem; margin-inline: auto; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin-top: var(--s-4); margin-bottom: var(--s-2); }

/* ------------------------------------------------------------ type */

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: var(--t-xl);  font-weight: 700; line-height: 1.2; }
h4 { font-size: var(--t-bd);  font-weight: 700; line-height: 1.3; }

.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }

/* small caps label */
.label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* section head: label between two hairlines, heading centered beneath */
.sec-head { text-align: center; margin-bottom: var(--s-4); }
.sec-head .label { display: flex; align-items: center; gap: 1rem; margin: 0 0 var(--s-2); }
.sec-head .label::before, .sec-head .label::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.sec-head h2 { margin-inline: auto; max-width: 24ch; }
.sec-head .lede { margin: var(--s-2) auto 0; max-width: var(--measure); }

/* diamond separator, the seal's ring diamond */
.dia { display: inline-block; width: 6px; height: 6px; background: var(--sun); transform: rotate(45deg); margin: 0 0.7em; vertical-align: middle; }

/* the double rule: outer ring 4 units, fine ring 1.5, gap 4 */
.rule-double { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); height: 6px; }
.rule-hair { border: 0; height: 1px; background: var(--hair); margin: 0; }

/* a value to be replaced before launch */
.fill { color: var(--hill); border-bottom: 1px dotted var(--hill); font-style: normal; }

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

.folio { border-bottom: 1px solid var(--hair); }
.folio .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.55rem;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 640px) { .folio .mid { display: none; } }

/* lockup left, links right, as in version1; the double rule stays */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-block: 1.1rem;
}
.masthead .brand { display: block; line-height: 0; }
/* spec 12.0: horizontal lockup at 44 to 56 px tall in a website header */
.masthead .brand img { height: 48px; width: auto; display: block; }
.masthead .brand .dark { display: none; }
@media (prefers-color-scheme: dark) { .masthead .brand .light { display: none; } .masthead .brand .dark { display: block; } }
@media (max-width: 520px) { .masthead .brand img { height: 40px; } }
/* once the nav wraps under the lockup the header is too tall to pin */
@media (max-width: 700px) { .masthead { position: static; } }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-1) clamp(1rem, 2.5vw, 1.75rem);
}
.site-nav a {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--sun); }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-block;
  font-family: "Libre Franklin", sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--solid);
  border-radius: var(--pill);
  background: var(--solid);
  color: var(--on-solid);
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: transparent; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--solid); color: var(--on-solid); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.center .btn-row, .btn-row.center { justify-content: center; }

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

section { padding-block: clamp(3rem, 7vw, var(--s-6)); }
section.tight { padding-block: clamp(2rem, 5vw, var(--s-5)); }
section + section { border-top: 1px solid var(--hair); }
.center { text-align: center; }

/* ------------------------------------------------------------ hero */

.hero { text-align: center; padding: clamp(3rem, 8vw, 6.5rem) 0 0; }
.hero .label { justify-content: center; }
.hero h1 { max-width: 15ch; margin: var(--s-2) auto 0; }
.hero .lede { max-width: 42ch; margin: var(--s-3) auto 0; font-size: var(--t-xl); color: var(--text); }
.hero .sub { max-width: 54ch; margin: var(--s-2) auto 0; color: var(--muted); }
.hero .btn-row { justify-content: center; margin-top: var(--s-4); }

/* The horizon: the seal's scene unrolled across the full page width. The
   hills rise out of the page ground itself; only the water is a band. */
.horizon-band { margin-top: clamp(2rem, 5vw, 4rem); line-height: 0; border-bottom: 1px solid var(--hair); }
.horizon-band svg { display: block; width: 100%; height: clamp(180px, 26vw, 360px); }
.horizon-band .sun   { fill: var(--sun); }
.horizon-band .far   { fill: var(--hill-light); stroke: var(--ground); stroke-width: 4; }
.horizon-band .near  { fill: var(--hill);       stroke: var(--ground); stroke-width: 4; }
.horizon-band .water { fill: var(--water);      stroke: var(--ground); stroke-width: 4; }
.horizon-band .wave  { fill: none; stroke: var(--ground); stroke-width: 3; stroke-linecap: round; }

/* ------------------------------------------------------------ numbers row */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-3) var(--s-3);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding-block: var(--s-3);
  text-align: center;
}
.numbers .big {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.numbers .what { margin-top: 0.5rem; font-size: var(--t-sm); color: var(--muted); }

/* ------------------------------------------------------------ broadsheet columns */

.broadsheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.broadsheet .divider { background: var(--hair); }
.column { text-align: center; }
.column .tag { margin: 0 0 var(--s-2); }
.column .masthead-type {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}
.column .masthead-type a { text-decoration: none; }
.column .masthead-type a:hover { text-decoration: underline; }
.column p { color: var(--muted); max-width: 40ch; margin: var(--s-3) auto 0; text-wrap: pretty; }
.column .folio-line {
  margin: var(--s-3) auto 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--hair);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  max-width: 34ch;
}
.column .btn-row { justify-content: center; }
@media (max-width: 760px) {
  .broadsheet { grid-template-columns: 1fr; gap: var(--s-4); }
  .broadsheet .divider { height: 1px; }
}

/* ------------------------------------------------------------ contents list */

.contents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
.contents li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--s-2);
  padding: var(--s-2) 0 var(--s-3);
  border-top: 1px solid var(--hair);
}
.contents .n {
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--hill);
}
.contents h3 { font-size: var(--t-lg); margin-bottom: 0.25rem; }
.contents p { margin: 0; color: var(--muted); font-size: var(--t-bd); }
@media (max-width: 680px) { .contents { grid-template-columns: 1fr; } }

/* diamond list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; background: var(--sun); transform: rotate(45deg); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks.cols { columns: 2; column-gap: var(--s-4); }
@media (max-width: 560px) { .ticks.cols { columns: 1; } }

/* three centered steps */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); text-align: center; }
.trio .n {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hill);
}
.trio h3 { font-size: var(--t-lg); margin: var(--s-2) 0 var(--s-1); }
.trio p { margin: 0; color: var(--muted); }

/* principles: three columns with diamond heads */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4) var(--s-4); }
.principles h3 { font-size: var(--t-lg); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.principles h3::before { content: ""; width: 7px; height: 7px; background: var(--sun); transform: rotate(45deg); flex: none; }
.principles p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------ seal feature */

.seal-block { text-align: center; }
.seal-block img { width: 200px; height: 200px; display: block; margin: 0 auto var(--s-3); }
.seal-block .dark { display: none; }
@media (prefers-color-scheme: dark) { .seal-block .light { display: none; } .seal-block .dark { display: block; } }
.quote {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 auto;
  text-wrap: balance;
}
.seal-block .sub { max-width: 52ch; margin: var(--s-3) auto 0; color: var(--muted); }

/* ------------------------------------------------------------ data */

.data { margin: 0; }
.data > div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: var(--s-3);
  padding: 0.75rem 0;
  border-top: 1px solid var(--hair);
}
.data > div:last-child { border-bottom: 1px solid var(--hair); }
.data dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding-top: 0.25rem; }
.data dd { margin: 0; font-size: var(--t-sm); word-break: break-word; }

table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; border-bottom: 1px solid var(--rule); }
.table-wrap { overflow-x: auto; }

.address { font-style: normal; line-height: 1.7; }
.address b { display: block; font-weight: 600; }

/* ------------------------------------------------------------ inverse band */

.band { background: var(--band-bg); color: var(--band-fg); }
.band h2, .band h3 { color: var(--band-fg); }
.band p { color: var(--band-muted); }
.band .label { color: var(--band-muted); }
.band .sec-head .label::before, .band .sec-head .label::after { background: var(--band-hair); }
.band .btn { background: var(--band-fg); color: var(--band-bg); border-color: var(--band-fg); }
.band .btn:hover { background: transparent; color: var(--band-fg); }
.band .btn.ghost { background: transparent; color: var(--band-fg); }
.band .btn.ghost:hover { background: var(--band-fg); color: var(--band-bg); }
.band a { color: var(--band-fg); }
.band + section { border-top: 0; }

/* ------------------------------------------------------------ page head */

.page-head { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head .label { justify-content: center; }
.page-head h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); max-width: 18ch; margin: var(--s-2) auto 0; }
.page-head .lede { max-width: var(--measure); margin: var(--s-3) auto 0; }

/* two-column editorial layout for interior pages */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s-5); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: var(--s-4); } }

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

.site-foot { background: var(--band-bg); color: var(--band-fg); text-align: center; padding-block: var(--s-5) var(--s-3); margin-top: var(--s-5); }
.site-foot img { width: 150px; height: auto; display: block; margin: 0 auto var(--s-3); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem clamp(1rem, 3vw, 2rem); margin-bottom: var(--s-3); }
.foot-nav a { font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: var(--band-muted); }
.foot-nav a:hover { color: var(--band-fg); }
.site-foot .addr { font-size: var(--t-sm); color: var(--band-muted); margin: 0; }
.site-foot .addr a { color: var(--band-fg); text-decoration: none; }
.site-foot .addr a:hover { text-decoration: underline; }
.site-foot .strip { margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid var(--band-hair); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-muted); }

/* ------------------------------------------------------------ misc */

.error-page { padding-block: clamp(4rem, 12vw, 9rem); text-align: center; }
.error-page .code { font-family: "Fraunces", Georgia, serif; font-size: var(--t-3xl); font-weight: 700; line-height: 1; color: var(--hill); margin-bottom: var(--s-2); }
.error-page .lede { margin: var(--s-3) auto 0; max-width: 40ch; }

.locale { display: inline-block; font-size: var(--t-xs); letter-spacing: 0.14em; color: var(--faint); font-variant-numeric: tabular-nums; text-transform: uppercase; }

@media print {
  .site-nav, .btn-row, .band, .skip, .site-foot { display: none; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------ spacing utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }

/* ------------------------------------------------------------ photo hero (version3) */

.photo-hero {
  position: relative;
  display: grid;
  min-height: clamp(440px, 60vw, 700px);
  background: var(--navy);
  color: #FFFFFF;
  overflow: hidden;
}
.photo-hero .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* navy scrim from the bottom so white type sits on the dark tree line, not the water */
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,43,59,0.94) 0%, rgba(30,43,59,0.72) 36%, rgba(30,43,59,0.38) 58%, rgba(30,43,59,0.06) 78%, rgba(30,43,59,0) 100%);
}
.photo-hero-text {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(2.25rem, 5vw, 3.75rem);
}
.photo-hero .label { color: rgba(255,255,255,0.72); }
.photo-hero h1 { color: #FFFFFF; max-width: 13ch; margin-top: var(--s-2); }
.photo-hero .lede { color: rgba(255,255,255,0.9); max-width: 40ch; margin-top: var(--s-3); font-size: var(--t-xl); }
.photo-hero .lede a { color: #FFFFFF; }
.photo-hero .btn { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.photo-hero .btn:hover { background: transparent; color: #FFFFFF; }
.photo-hero .btn.ghost { background: transparent; color: #FFFFFF; }
.photo-hero .btn.ghost:hover { background: #FFFFFF; color: var(--navy); }
@media (max-width: 640px) {
  .photo-hero { min-height: 78vh; }
  .photo-hero .lede { font-size: var(--t-lg); }
}

.credit { margin: 0; border-bottom: 1px solid var(--hair); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.credit .wrap { display: block; padding-block: 0.6rem; text-align: right; }
