/* Visual refresh only. Loaded after the original stylesheets.
   Original css/ and js/ files are left unchanged. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,700&family=Outfit:wght@340;460;580;700&display=swap');

:root {
  --ink: #1c1915;
  --muted: #6d645b;
  --paper: #f7f1e8;
  --card: #fffdf9;
  --line: rgba(48, 32, 18, 0.1);
  --clay: #c4512c;
  --clay-deep: #9a3412;
  --forest: #1f4d45;
  --forest-deep: #14352f;
  --gold: #e7b15a;
  --shadow: 0 18px 50px rgba(55, 32, 14, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", "Hanken Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(231, 177, 90, 0.28), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(31, 77, 69, 0.16), transparent 55%),
    var(--paper);
}

.welcome {
  background:
    linear-gradient(160deg, rgba(20, 53, 47, 0.92), rgba(31, 77, 69, 0.78)),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80L80 0H40L0 40M80 80V40L40 80' stroke='%23e7b15a' stroke-opacity='.18' fill='none'/%3E%3C/svg%3E");
  border-bottom: 4px solid var(--gold);
  padding-bottom: 28px;
}

header {
  height: auto;
  min-height: 76px;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

header img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

header .logo a,
.logo-mark {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #fffaf3;
  text-shadow: none;
  text-decoration: none;
}

.desk-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 8px;
  margin-left: auto;
}

.desk-nav a {
  color: #f6efe4;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 580;
  padding: 8px 10px;
  border-radius: 999px;
}

.desk-nav a:hover,
.desk-nav a.active {
  background: rgba(255, 250, 243, 0.14);
  color: #fff;
}

header span,
.menu-btn {
  background: var(--clay) !important;
  color: #fff !important;
  width: 46px;
  height: 46px;
  line-height: 36px;
  border-radius: 14px !important;
  flex: 0 0 46px;
}

.hero-copy {
  max-width: 820px;
  margin: 8px auto 36px;
  text-align: center;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

h1 {
  font-family: "Fraunces", serif;
  color: #fffaf3;
  text-shadow: none;
  font-size: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: 8px;
  font-weight: 700;
}

.lede {
  color: rgba(255, 250, 243, 0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

main {
  width: min(1100px, calc(100% - 28px));
  top: -36px;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 22px 8px;
}

.view-box input,
#inputword {
  border: 1.5px solid #eadfce !important;
  background: #fff !important;
  border-radius: 16px !important;
  min-height: 56px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  padding-left: 18px !important;
}

.search {
  border-radius: 14px !important;
  background: var(--forest) !important;
}

#meaning {
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
}

.extra-sec-row {
  width: 100%;
  top: 0;
  gap: 12px;
  margin-top: 4px;
}

.extra-sec-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
  padding: 18px 10px;
  flex: 1 1 180px;
}

.extra-sec-col h4 { font-weight: 650; margin-top: 6px; }
.extra-sec-col img { width: 42px; height: 42px; object-fit: contain; }

.overlay {
  background: rgba(20, 24, 22, 0.94);
  z-index: 20;
}

.overlay-content a {
  color: #f3eadf;
  font-size: 1.25rem;
  text-align: center;
}

.overlay .closebtn { color: #fff; }

footer.site-footer {
  margin: 10px auto 28px;
  width: min(1100px, calc(100% - 28px));
  background: var(--forest-deep);
  color: #f6efe4;
  border-radius: 24px;
  padding: 28px 24px 18px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.site-footer h3 {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.site-footer p, .site-footer a { color: rgba(246, 239, 228, 0.86); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-base {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.footer-base a { font-weight: 700; color: #fff; }

.page-shell { min-height: 100vh; }
.page-main {
  display: block; /* override original main { display: flex } so headings stay above tables */
  width: min(980px, calc(100% - 28px));
  margin: -28px auto 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px 28px 36px;
}
.page-main h1 {
  color: var(--ink);
  text-align: left;
  font-size: clamp(2rem, 4vw, 3rem);
  padding-bottom: 6px;
}
.page-main h2 {
  display: block;
  clear: both;
  width: 100%;
  font-family: "Fraunces", serif;
  margin: 32px 0 10px;
  font-size: 1.5rem;
}
.page-main h3 {
  display: block;
  clear: both;
  margin: 20px 0 6px;
  font-size: 1.15rem;
}
.page-main p, .page-main li, .page-main ol { color: #3d352e; line-height: 1.7; }
.page-main ul, .page-main ol { padding-left: 18px; margin: 8px 0 16px; }
.page-main .table-wrap,
.page-main .toc {
  display: block;
  clear: both;
  width: 100%;
}
.kicker { color: var(--clay-deep); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

.blog-list { display: grid; gap: 14px; margin-top: 18px; }
.blog-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}
.blog-card span { color: var(--muted); font-size: 0.85rem; }
.blog-card h2 { margin: 6px 0; }
.blog-card a { color: var(--forest); font-weight: 700; text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
label { display: block; font-weight: 650; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1.5px solid #eadfce;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
button, .btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--clay);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--clay-deep); }
.note {
  background: #f4efe6;
  border-radius: 16px;
  padding: 16px;
}
.page-wide { width: min(1100px, calc(100% - 28px)); }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; }
table.vocab { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.vocab th, table.vocab td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.vocab th { background: #1f4d45; color: #fffaf3; font-weight: 650; }
table.vocab tr:nth-child(even) td { background: #f8f3eb; }
table.vocab td:first-child { font-weight: 650; }

@media (max-width: 860px) {
  .desk-nav { display: none; }
  .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  header { padding: 12px 14px; }
}
