/* St. Athanasius Orthodox Academy
   Colours: parchment #F8EDD3 / #FCF5E4 / #F1E1BD, oxblood #7B2A27, deep oxblood #5E1E1C,
   ink #2B1D17, muted ink #4A3A2E, footer #3A1413, gold rule #DCC9A0.
   Fonts: Alegreya (text), Cormorant SC (school name, small-caps labels). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F8EDD3; color: #2B1D17; }
img { max-width: 100%; }
a { color: #7B2A27; }
a:hover { color: #4E1716; }
:focus-visible { outline: 3px solid #7B2A27; outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: #7B2A27; color: #FCF5E4; padding: 12px 18px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Placeholders still to be filled in (gold dashed boxes) */
.ph { background: #F1DCA6; color: #5E1E1C; padding: 0 .3em; border: 1px dashed #7B2A27; border-radius: 3px; font-style: normal; white-space: nowrap; }
.phb { display: block; background: #F1DCA6; color: #5E1E1C; padding: 18px 20px; border: 1px dashed #7B2A27; border-radius: 3px; font-style: normal; line-height: 1.55; }

/* Header navigation */
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; font-size: 17px; }
.nav a { color: #2B1D17; text-decoration: none; display: inline-block; padding: 10px 0; }
.nav a:hover { color: #7B2A27; }
.nav a.on { color: #7B2A27; box-shadow: inset 0 -2px 0 #7B2A27; }
.menu-toggle { display: none; align-items: center; gap: 8px; font: inherit; font-size: 17px; font-weight: 700; color: #7B2A27; background: transparent; border: 1.5px solid #7B2A27; border-radius: 2px; padding: 10px 16px; min-height: 44px; cursor: pointer; }

@media (max-width: 1080px) {
  .site-header > div { flex-wrap: nowrap !important; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%; background: #FCF5E4; border-bottom: 1px solid #DCC9A0;
    padding: 8px clamp(16px, 4vw, 40px) 20px; box-shadow: 0 12px 24px rgba(58, 20, 19, .12); z-index: 20; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid #EADBB8; }
  .nav.open a.on { box-shadow: none; }
  .nav.open a.btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .site-header { position: relative; }
}
@media (max-width: 420px) {
  .brand img { width: 48px !important; height: 48px !important; }
  .brand span span:first-child { font-size: 20px !important; }
  .brand span span:last-child { font-size: 15px !important; }
}

/* Buttons */
a.btn { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; background: #7B2A27; color: #FCF5E4; text-decoration: none; font-weight: 700; letter-spacing: .02em; padding: 12px 26px; border-radius: 2px; }
a.btn:hover { background: #4E1716; color: #FCF5E4; }
a.btn .ph { background: #FCF5E4; }
a.ghost { display: inline-flex; align-items: center; min-height: 48px; border: 1.5px solid #7B2A27; color: #7B2A27; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 2px; }
a.ghost:hover { background: #7B2A27; color: #FCF5E4; }

/* Framed corners, as on the seminar slides */
.c { position: absolute; width: 64px; height: 64px; border: 0 solid #3A2A20; pointer-events: none; }
.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Footer */
.foot a { color: #F3E6CC; text-decoration: none; display: inline-block; padding: 6px 0; }
.foot a:hover { color: #FFFFFF; text-decoration: underline; }

/* Curriculum table */
.cur { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 16px; line-height: 1.5; background: #FCF5E4; }
.cur th, .cur td { border: 1px solid #CDB88A; padding: 14px 16px; text-align: left; vertical-align: top; }
.cur thead th { background: #7B2A27; color: #FCF5E4; font-weight: 700; }
.cur tbody th { background: #F1E1BD; color: #5E1E1C; font-weight: 700; width: 18%; }
.cur .era td { background: #F7E9C8; font-style: italic; color: #5E1E1C; }

/* Daily schedule */
.day { width: 100%; border-collapse: collapse; font-size: 17px; background: #FCF5E4; }
.day th, .day td { border-bottom: 1px solid #DCC9A0; padding: 13px 18px; text-align: left; vertical-align: top; }
.day thead th { background: #7B2A27; color: #FCF5E4; }
.day td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: #5E1E1C; font-weight: 700; width: 9em; }
@media (max-width: 480px) { .day th, .day td { padding: 12px 12px; font-size: 16px; } .day td:first-child { width: auto; } }

a.video:hover .play { background: #4E1716; }

/* Links page */
a.res { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid #DCC9A0; text-decoration: none; color: #2B1D17; }
a.res:hover .t { text-decoration: underline; }
a.res .t { font-size: 1.3rem; font-weight: 700; color: #7B2A27; }
a.res .d { font-size: 16px; color: #4A3A2E; line-height: 1.5; }

/* Leadership pages: keep two portraits from growing too large */
.leaders { max-width: 980px !important; }

/* Application form */
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-weight: 700; font-size: 16px; color: #2B1D17; }
.f .req { color: #7B2A27; }
.f input, .f select, .f textarea { font: inherit; font-size: 17px; color: #2B1D17; background: #FFFDF7; border: 1px solid #B8A27A; border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid #7B2A27; outline-offset: 1px; border-color: #7B2A27; }
.f .hint { font-size: 14px; color: #5A4636; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: #4A3A2E; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: #7B2A27; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
button.submit { font: inherit; font-weight: 700; font-size: 18px; letter-spacing: .02em; background: #7B2A27; color: #FCF5E4; border: 0; border-radius: 2px; padding: 14px 30px; min-height: 52px; cursor: pointer; }
button.submit:hover { background: #4E1716; }
button.submit[disabled] { opacity: .65; cursor: progress; }
.form-status { font-size: 17px; line-height: 1.55; padding: 0; }
.form-status.err { background: #F7DCD6; color: #5E1E1C; border: 1px solid #B5574F; padding: 14px 16px; }
.thanks { display: flex; flex-direction: column; gap: 16px; padding: 40px 32px; background: #F8EDD3; border-top: 4px solid #7B2A27; }
.thanks h2 { margin: 0; font-weight: 500; font-size: 2rem; }
.thanks p { margin: 0; font-size: 1.15rem; line-height: 1.6; color: #4A3A2E; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
