/*
  Palette and font are carried over exactly from the construction page
  (public_html/index.html): Georgia/serif, white background, near-black
  text, red-orange accent for links.
*/

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #333333;
  --accent: #ff2600;
  --accent-soft: rgba(255, 38, 0, 0.35);
  --rule: #dddddd;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  font-size: 1.125rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
a:hover, a:focus { border-bottom-color: var(--accent); }

.draft-banner {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}
.draft-banner a { color: #ffffff; border-bottom-color: rgba(255, 255, 255, 0.55); }

.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.site-logo {
  display: block;
  text-align: center;
  border-bottom: none;
  margin-bottom: 1.5rem;
}
.site-logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
  transition: opacity 0.15s ease;
}
.site-logo:hover img { opacity: 0.8; }

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  padding: 0.75rem 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.site-nav a {
  color: var(--text);
  border-bottom: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom: 1px solid var(--accent); }

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.content h1 { font-size: 1.75rem; margin-top: 0.5rem; }

.content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.content h2:first-of-type { margin-top: 1.5rem; padding-top: 0; border-top: none; }

.lede { color: var(--text-secondary); font-size: 1.2rem; }

.draft-placeholder { color: #888888; font-style: italic; }

.toc { list-style: none; padding-left: 0; }
.toc li { margin-bottom: 0.4rem; }

.plain-list { padding-left: 1.25rem; }
.plain-list li { margin-bottom: 0.5rem; }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--rule);
}

form.contact-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 520px; }
form.contact-form label { font-weight: bold; display: block; margin-bottom: 0.35rem; }
form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
form.contact-form textarea { min-height: 160px; resize: vertical; }
form.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 2px;
}
form.contact-form button:hover { background: #e02100; }

/* honeypot field, hidden from sighted users, left in the tab/DOM order for bots */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: #fff7f5; margin-bottom: 1.5rem; }
.notice.success { border-left-color: #2a7a2a; background: #f3fbf3; }

@media (max-width: 600px) {
  .site-nav ul { gap: 1.1rem; flex-wrap: wrap; }
  .content h1 { font-size: 1.5rem; }
}

/* Subscribe / registration (shares the contact-form look) */
form.contact-form input[type="password"] {
  width: 100%; padding: 0.6rem 0.75rem; font: inherit; border: 1px solid var(--rule);
}
form.contact-form .check { display: flex; gap: 0.6rem; align-items: flex-start; }
form.contact-form .check input { margin-top: 0.35rem; }
form.contact-form .check label { font-weight: normal; margin: 0; }
form.contact-form .hint { font-size: 0.95rem; color: var(--text-secondary); margin: 0.25rem 0 0; }
.terms h2 { font-size: 1.15rem; margin-top: 1.6rem; }

/* Sign-in button in the main menu */
.site-nav a.signin {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 2px 0.9rem;
}
.site-nav a.signin:hover { background: var(--accent); color: #fff; }

/* ---------- Home: opening, picture, tiles (2026-11-30) ---------- */
#opening { display: none; }
html.opening { overflow: hidden; }
html.opening #opening { display: block; position: fixed; inset: 0; z-index: 1000; overflow: hidden; --w: min(537px, 88vw); }
#opening .door { position: absolute; top: 0; bottom: 0; width: 50%; background: #fff; transition: transform 1.25s cubic-bezier(.72, 0, .18, 1); }
#opening .left { left: 0; }
#opening .right { right: 0; }
/* the logo is 537 px wide and divides at x = 250; the halves overlap a little, as in the logo itself */
#opening img { position: absolute; top: 46%; height: auto; opacity: 0; transition: opacity .35s ease; }
#opening .left img { width: calc(var(--w) * 256 / 537); right: calc(var(--w) * -6 / 537 + var(--w) * 9 / 537); }
#opening .right img { width: calc(var(--w) * 301 / 537); left: calc(var(--w) * -14 / 537 - var(--w) * 9 / 537); }
#opening .right { z-index: 1; }
html.shown #opening img { opacity: 1; }
html.go #opening .left { transform: translateX(calc(-100% - 40px)); }
html.go #opening .right { transform: translateX(calc(100% + 40px)); }
html.opening .hero-picture img { transform: scale(1.05); }
html.opening.go .hero-picture img { transform: none; transition: transform 1.6s cubic-bezier(.2, .6, .2, 1); }

.hero { position: relative; overflow: hidden; background: #8890a0; }
.hero-picture { display: block; border: 0; overflow: hidden; }
.hero-picture img { display: block; width: 100%; height: auto; max-height: 74vh; object-fit: cover; object-position: 50% 22%; }
.hero h1 { position: absolute; left: 50%; right: 4%; top: 9%; margin: 0; color: #fff; text-align: center; font-weight: normal; font-size: clamp(1.8rem, 3.4vw, 3.3rem); line-height: 1.15; text-shadow: 0 1px 10px rgba(40, 46, 66, .55); pointer-events: none; }
.hero-caption { max-width: 1100px; margin: .5rem auto 0; padding: 0 1.5rem; text-align: right; font-size: .85rem; color: #666; }
.home-content { padding-top: 1.6rem; padding-bottom: 1.5rem; }
.home-content .lede { font-size: 1.4rem; line-height: 1.45; margin-bottom: 1.4rem; }
.buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 2rem; }
.button { display: inline-block; padding: .65rem 1.4rem; border: 1px solid var(--accent); background: #d92000; border-color: #d92000; color: #fff; }
.button:hover, .button:focus { background: #b51b00; border-color: #b51b00; }
.button.plain { background: #fff; color: #c41d00; }
.button.plain:hover, .button.plain:focus { background: #fff4f1; }
.look { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; border-top: 1px solid var(--rule); }
.look h2 { font-size: 1.6rem; font-weight: normal; margin: 1rem 0 .3rem; }
.look-intro { color: var(--text-secondary); margin: 0 0 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tile { display: block; border: 0; color: var(--text); }
.tile img { display: block; width: 100%; height: auto; margin-bottom: .6rem; transition: opacity .2s ease; }
.tile:hover img, .tile:focus img { opacity: .82; }
.tile strong { display: block; color: #c41d00; font-weight: normal; font-size: 1.15rem; }
.tile span { display: block; font-size: .95rem; line-height: 1.4; color: var(--text-secondary); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .hero { background: none; overflow: visible; }
  .hero h1 { position: static; color: var(--text); text-shadow: none; text-align: left; padding: 1.1rem 1.5rem 0; font-size: 1.9rem; }
  .hero-caption { text-align: left; }
  .home-content { padding-top: .8rem; }
  .home-content .lede { font-size: 1.2rem; }
}
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } }
