@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #eaf2fb;
  --surface: #ffffff;
  --surface-2: #e1edf9;
  --border: #c9dcee;
  --text: #1c2b3a;
  --text-muted: #5e7488;
  --primary: #2f70bc;   /* Millers Tech blue */
  --primary-dark: #1f5690;
  --accent: #6d88a3;    /* Millers Tech grey, tinted blue */
  --danger: #c1473c;
  --success: #3f9868;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--primary); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.site-header .brand span { color: var(--accent); }

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover { color: var(--text); }

#header-account {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#header-account .sep { color: var(--border); }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero p {
  color: var(--text-muted);
  max-width: 40em;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

.timeline-rule {
  height: 3px;
  width: 120px;
  margin: 1.75rem auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--primary-dark); }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.secondary:hover { border-color: var(--primary); }

input, textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 0.9rem;
}

input:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.message {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.message.success { background: rgba(63,152,104,0.12); color: var(--success); }
.message.error { background: rgba(193,71,60,0.12); color: var(--danger); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.photo-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem 2rem;
  z-index: 1000;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  color: #f2f6fa;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #f2f6fa;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
}

.photo-grid figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.comment:last-child { border-bottom: none; }

.comment .who {
  font-weight: 600;
  margin-right: 0.5rem;
}

.comment .when {
  color: var(--text-muted);
  font-size: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
}

th { color: var(--text-muted); font-weight: 500; }

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
}
