/* ============================================
   BISSULA — Antique/Classical Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --parchment:      #f4e8c1;
  --parchment-dark: #e8d5a3;
  --parchment-deep: #d4c089;
  --roman-red:      #8B1A1A;
  --roman-red-light:#a52a2a;
  --text-dark:      #3a2a1a;
  --text-medium:    #5a4a3a;
  --gold:           #b8860b;
  --gold-light:     #d4a843;
  --cream:          #faf5e8;
  --shadow:         rgba(58, 42, 26, 0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text-dark);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 192, 137, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 134, 11, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 26, 26, 0.03) 0%, transparent 50%);
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 600;
  color: var(--roman-red);
  letter-spacing: 0.04em;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 400;
}

a {
  color: var(--roman-red);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --- Meander / Greek Key Border (CSS-only) --- */
.meander {
  height: 16px;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) -8px 0,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) -8px 0,
    linear-gradient(315deg, var(--gold) 25%, transparent 25%),
    linear-gradient(45deg, var(--gold) 25%, transparent 25%);
  background-size: 16px 16px;
  background-color: var(--parchment-dark);
  opacity: 0.4;
}

/* --- Decorative Horizontal Rule --- */
.roman-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 400px;
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0.7;
}

.roman-rule::before,
.roman-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--text-dark) 0%, #2a1a0a 100%);
  padding: 0;
  box-shadow: 0 2px 12px var(--shadow);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 0.75rem 1.1rem;
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

nav a:hover {
  color: var(--gold-light);
  border-bottom: 2px solid var(--gold);
  background: rgba(184, 134, 11, 0.1);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 6rem 2rem 5rem;
  background:
    linear-gradient(180deg, rgba(58, 42, 26, 0.82) 0%, rgba(139, 26, 26, 0.6) 50%, rgba(58, 42, 26, 0.85) 100%),
    url('assets/img/hero-sailing.jpg') center/cover no-repeat;
  color: var(--parchment);
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--parchment);
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero .intro {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--parchment-dark);
}

.hero .latin-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 2rem;
  opacity: 0.8;
}

/* --- Main Content --- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3.5rem 0;
}

section + section {
  border-top: 1px solid var(--parchment-dark);
}

/* --- Spec Grid (Technical Details) --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.spec-card {
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.spec-card .value {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--roman-red);
  display: block;
  margin-bottom: 0.25rem;
}

.spec-card .label {
  font-size: 0.85rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--roman-red), var(--gold));
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--roman-red);
  box-shadow: 0 0 0 3px var(--parchment);
}

.timeline-entry .year {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--roman-red);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-entry .event {
  color: var(--text-medium);
  font-size: 1rem;
}

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  border-left: 4px solid var(--roman-red);
  padding: 1.5rem;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px var(--shadow);
}

.team-card .name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--roman-red);
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-style: italic;
}

.team-card .affiliation {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 0.25rem;
}

/* --- Sources Section --- */
.sources-list {
  list-style: none;
  padding: 0;
}

.sources-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--parchment-dark);
  font-size: 0.95rem;
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list .source-type {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-right: 0.5rem;
}

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, #2a1a0a 0%, var(--text-dark) 100%);
  color: var(--parchment-dark);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  margin-top: 2rem;
}

footer a {
  color: var(--gold-light);
  border-bottom-color: rgba(184, 134, 11, 0.3);
}

footer a:hover {
  color: var(--parchment);
}

footer .footer-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* --- Blockquote (for Ausonius quotes) --- */
blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--cream);
  font-style: italic;
  color: var(--text-medium);
  border-radius: 0 4px 4px 0;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
  font-family: 'Cinzel', serif;
}

/* --- Info Box --- */
.info-box {
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px var(--shadow);
}

/* --- Section Images / Figures --- */
.section-image {
  margin: 2rem 0;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--parchment-dark);
  box-shadow: 0 4px 16px var(--shadow);
}

.section-image figcaption {
  text-align: center;
  margin-top: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Float image beside text */
.section-image.float-right {
  float: right;
  width: 45%;
  margin: 0.5rem 0 1.5rem 2rem;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* --- Image Row (2-3 images side by side) --- */
.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.image-row figure {
  margin: 0;
}

.image-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--parchment-dark);
  box-shadow: 0 3px 10px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-row img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(58, 42, 26, 0.25);
}

.image-row figcaption {
  text-align: center;
  margin-top: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Full-width Banner Image --- */
.banner-image {
  margin: 2.5rem -2rem;
  overflow: hidden;
  border-top: 1px solid var(--parchment-dark);
  border-bottom: 1px solid var(--parchment-dark);
}

.banner-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.banner-image figcaption {
  text-align: center;
  padding: 0.6rem;
  background: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 3rem 1.5rem 2.5rem;
    min-height: 50vh;
  }

  .hero h1 {
    font-size: 2.8rem;
    letter-spacing: 0.15em;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  nav a {
    padding: 0.6rem 0.75rem;
    font-size: 0.6rem;
  }

  main {
    padding: 0 1.25rem;
  }

  section {
    padding: 2.5rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }

  .section-image.float-right {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }

  .image-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .image-row img {
    height: 200px;
  }

  .banner-image {
    margin: 2rem -1.25rem;
  }

  .banner-image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
  }

  nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  nav li {
    flex-shrink: 0;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
