/* Basic reset */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* -------- Base body (Georgia like MORQ) -------- */
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif; /* body = serif */
  font-size: 16px;
  line-height: 1.65;
  color: #111;
  background: #fff;
}

/* -------- Layout -------- */
:root {
  --sidebar-w: 230px;  /* left menu width */
  --frame: 56px;       /* white border around hero */
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border-right: 1px solid #eee;
}

.logo {
  font-family: Georgia, serif;      /* keep your wordmark look */
  font-size: 64px;
  letter-spacing: .08em;
  text-decoration: none;
  color: #111;
  text-transform: uppercase;
}

/* Sidebar menu = Helvetica Neue / Arial */
.menu { display: flex; flex-direction: column; gap: 10px; }
.menu a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* headings/menu = sans */
  text-decoration: none;
  color: #666;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.menu a:hover, .menu a.active { color: #111; }

/* Main content */
.content {
  margin-left: var(--sidebar-w);
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* White frame around hero */
.frame {
  height: 100%;
  padding: var(--frame);
  background: #fff;
}

/* Hero image fill */
.hero {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.content-pad { padding: 25px 25px 72px; max-width: 900px; }

/* Mobile */
@media (max-width: 860px) {
  :root { --sidebar-w: 100%; --frame: 24px; }
  .sidebar {
    position: sticky;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .menu { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .content { margin-left: 0; height: calc(100vh - 92px); }
  .frame { height: 100%; padding: var(--frame); }
  .hero { height: 100%; }
}

/* -------- About page typography & layout -------- */

/* Page title: keep ALLISON (handwritten) */
h1.page-title {
  font-family: 'Allison', cursive !important;  /* don't remove */
  font-size: 90px !important;                  /* adjust as you like */
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 24px 0;
}

/* Headings elsewhere (Helvetica Neue / Arial) */
h1, h2, h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-top: 0;
  color: #111;
}

/* Allow text pages to scroll */
.content.text {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

/* Align title row with sidebar logo baseline */
.title-row {
  display: flex;
  align-items: center;
  margin-top: -6px;
  margin-bottom: 16px;
}

/* Section labels: same size as body, no emphasis */
.section-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* keep sans for labels */
  font-size: 16px;
  font-weight: 700;
  text-transform: none;  /* not uppercase */
  margin: 24px 0 8px;
}

/* Small footer note */
.footer-note {
  color: #666;
  font-size: 12px;
  margin-top: 28px;
}
/* Footer at the bottom with divider */
.footer-note {
  color: #666;
  font-size: 12px;
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ddd;   /* subtle grey line */
  text-align: left;
}

/* Stick footer at bottom of page content */
.content.text {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer-note {
  margin-top: auto;  /* pushes footer down */
}
/* Let the text page be the flex parent */
.content.text {
  display: flex;
  min-height: 100vh;
  overflow: auto;              /* scroll if content is long */
}

/* Make inner wrapper a flex column so footer can push down */
.content-pad {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 25px 30px;
  max-width: 900px;
}

/* Single, final footer rule */
.footer-note {
  margin-top: auto;            /* push to bottom */
  padding-top: 22px;
  border-top: 1px solid #ddd;  /* subtle divider */
  color: #666;
  font-size: 12px;
}

.float-right {
  float: right;
  max-width: 40%;       /* keeps image proportionate */
  height: auto;
  margin: 0 0 20px 20px; /* gap: top/right/bottom/left */
}
/* ====== Tablet ↓ (<= 860px) ====== */
@media (max-width: 860px) {
  :root { --sidebar-w: 100%; --frame: 24px; }

  /* Sidebar becomes a top bar */
  .sidebar{
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid #eee;
    background: #fff;
  }
  .logo{ font-size: 40px; line-height: 1; }

  .menu{
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;     /* in case items overflow */
    -webkit-overflow-scrolling: touch;
  }
  .menu a{ font-size: 11px; letter-spacing: .14em; padding: 4px 0; }

  /* Content sits below the top bar and can scroll */
  .content{ margin-left: 0; height: auto; min-height: 100vh; overflow: visible; }
  .content-pad{ padding: 20px 16px 28px; max-width: 820px; }

  /* Page title and headings scale down a bit */
  h1.page-title{ font-size: 64px !important; }
  h2.section-label{ font-size: 15px; }

  /* Right-side image blocks stack under text */
  .text-with-image{ grid-template-columns: 1fr; }
}

/* ====== Phone ↓ (<= 520px) ====== */
@media (max-width: 520px) {
  .logo{ font-size: 34px; }
  h1.page-title{ font-size: 48px !important; margin-bottom: 12px; }

  body{ font-size: 15px; line-height: 1.5; }
  p{ margin: 0 0 10px; }

  .content-pad{ padding: 16px 14px 24px; }

  /* Any floated images should break the float on phones */
  .float-right{
    float: none;
    display: block;
    max-width: 100%;
    margin: 12px 0;
  }

  /* If you ever use a full-page side image layout */
  .side-image{ padding: 12px 14px; }
  .side-image img{ width: 100%; height: auto; }
}
