/* Plain, Berkshire-style: black on white, content across 90% of the screen.
   Type: Baskervville for headings (and the family motto, in italic), Inter for everything else.
   Sizes are in rem (1rem = 16px on phones, tablets, laptops and desktops),
   stepping up only on very large screens such as 4K monitors and TVs.
   Fonts are self-hosted, SIL Open Font License. */

@font-face {
  font-family: "Baskervville";
  src: url("/fonts/baskervville-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("/fonts/baskervville-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --serif: "Baskervville", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  font-size: 16px;
}
@media (min-width: 2400px) { html { font-size: 20px; } }
@media (min-width: 3200px) { html { font-size: 26px; } }

/* Body text: Inter Regular, 17px (phones/tablets) to 18px (laptop and up), line height 1.6 */
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
a { color: #000; }

/* Same as Berkshire: a centred block 90% of the window wide */
.wrap { width: 90%; margin: 0 auto; }

/* Header + navigation: Inter Medium, 15px */
header.site {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #000;
}
.logo { display: inline-block; }
.logo img { height: 2.75rem; width: auto; }
nav {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
nav a[aria-current="page"] { text-decoration: none; }

/* Content */
main { padding-bottom: 2rem; }

p { margin: 0 0 1rem; }
b { font-weight: 600; }

/* Main headings: Baskervville Regular, 36–42px on phones, 48–60px on desktop */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
  line-height: 1.1;
  margin: 2rem 0 1.25rem;
}

/* Section headings: Baskervville Regular, 30–36px, sentence case */
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.5rem + 0.8vw, 2.25rem);
  line-height: 1.2;
  margin: 1.75rem 0 1rem;
}

/* Family motto (for when one is added): Baskervville Italic, 20–24px */
.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  line-height: 1.4;
}

/* Inner pages: left-aligned like a document; long paragraphs kept readable */
.page p, .lions p { max-width: 46em; }

/* Twin Lions emblem */
.emblem { width: 8.75rem; margin: 0 0 1.25rem; }

/* Home statement */
.statement { margin: 2rem auto 0; max-width: 46em; text-align: center; }

/* ---- Home: company list -------------------------------------------------
   Wide screens: OSWAL left | HOJ Capital + Two Lions centre | OSWAR right.
   Each side column is a block exactly as wide as its content (bullets
   included), so its heading always sits centred over its own list.        */
.fl { text-decoration: underline; }

.companies {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left center right";
  gap: 1.5rem 2rem;
  margin-top: 2.25rem;
  padding: 0 3%;
}
.col-left   { grid-area: left;   justify-self: start; }
.col-center { grid-area: center; text-align: center; }
.col-right  { grid-area: right;  justify-self: end; }
.col-left, .col-right { width: max-content; max-width: 100%; }

.col-center p { margin: 0 0 1.125rem; }

/* OSWAL / OSWAR: same underlined link style as the names, centred over their list */
.companies h2 {
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: underline;
  text-align: center;
  margin: 0 0 0.5rem;
}
.companies ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;   /* bullets inside the block, so centring is true */
}
.companies li { margin-bottom: 0.75rem; }

/* Footer: Inter Regular, 14px, left-aligned like Berkshire */
footer.site {
  padding-top: 0.875rem;
  padding-bottom: 1.75rem;
  border-top: 1px solid #000;
  font-size: 0.875rem;
  line-height: 1.5;
}
footer.site p { margin: 0 0 0.5rem; }
footer.site .note { padding-bottom: 0.875rem; border-bottom: 1px solid #000; }  /* line under the note */
footer.site .legal { margin: 0.875rem 0; }
footer.site a, footer.site a:visited { color: #000; }

/* Tablets in portrait, large phones in landscape, unfolded foldables:
   HOJ Capital + Two Lions on top, OSWAL and OSWAR side by side below,
   each centred in its half. */
@media (max-width: 760px) {
  .companies {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "center center" "left right";
    gap: 0.5rem 1rem;
    padding: 0;
  }
  .col-left, .col-right { justify-self: center; }
}

/* Phones */
@media (max-width: 600px) {
  .wrap { width: auto; margin: 0 1rem; }
  .logo img { height: 2.25rem; }
  nav { gap: 0.25rem 1rem; }
}

/* Very narrow screens (folded Galaxy Fold, small phones): one column */
@media (max-width: 400px) {
  .companies {
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left" "right";
    gap: 1.25rem;
  }
  nav { gap: 0.25rem 0.75rem; }
}
