/* ============================================================
   style.css  ✦  yassified edition
   warm, whimsical, a little academic, extremely herself
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ---------- tokens ---------- */
:root {
  --ink:         #343c64;
  --ink-light:   #5a6490;
  --gold:        #FCB033;
  --gold-pale:   #FFD89B;
  --white-glass: rgba(255, 255, 255, 0.42);
  --white-solid: rgba(255, 255, 255, 0.92);
  --border:      2px double white;
  --shadow:      2px 4px 22px rgba(52, 60, 100, 0.13);
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(160deg, #FCB033 0%, #FFD89B 45%, #ffffff 100%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
  column-rule: var(--border);
}

/* subtle grain overlay — baked into a pseudo on html so it never
   interferes with content stacking */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* everything sits above the grain */
body > * { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  column-span: all;
  text-align: center;
  font-family: 'IM Fell English', 'deco', Courier, serif;
  font-style: italic;
  font-size: 2.4rem;
  color: white;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.4),
    1px 3px 12px rgba(52, 60, 100, 0.22);
  letter-spacing: 0.03em;
  margin-bottom: 0.15em;
}

/* sparkle flourish under every h1 */
h1::after {
  content: "✦  ✦  ✦";
  display: block;
  font-size: 0.7rem;
  font-style: normal;
  color: var(--gold-pale);
  letter-spacing: 0.55em;
  margin-top: 0.4em;
}

h2 {
  font-family: 'IM Fell English', Courier, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 0.2em;
  margin: 1.6em 0 0.6em;
  letter-spacing: 0.02em;
}

h3 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.2em 0 0.4em;
}

p {
  margin: 0 0 0.9em;
}

/* ============================================================
   LINKS
   ============================================================ */

a:link,
a:visited {
  color: #304656;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-pale);
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  text-decoration: none;
  color: var(--gold);
}

/* ============================================================
   LISTS
   ============================================================ */

ul, ol {
  text-align: left;
  font-size: 1rem;
  font-family: 'Crimson Text', Georgia, serif;
  margin: 1em 0 1em 1.2em;
  padding-left: 1em;
}

ul {
  list-style: none;
  padding-left: 0;
}

/* custom bullet — a small gold lozenge */
ul > li::before {
  content: "◆";
  color: var(--gold);
  font-size: 0.55em;
  vertical-align: middle;
  margin-right: 0.6em;
}

ol {
  list-style: decimal;
}

ol li::marker {
  color: var(--gold);
  font-family: 'IM Fell English', serif;
  font-style: italic;
}

li + li {
  margin-top: 0.6em;
}

/* ============================================================
   TABLE
   ============================================================ */

table {
  width: 80%;
  display: block;
  overflow-x: auto;
  margin: 1.5em auto;
  text-align: center;
  border-spacing: 0;
}

thead tr {
  background: rgba(252, 176, 51, 0.18);
}

th {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: var(--border);
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.55);
}

td {
  border: var(--border);
  background: var(--white-glass);
  padding: 0.45em 1em;
  transition: background 0.18s;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.62);
}

/* ============================================================
   BOXES  (main content card)
   ============================================================ */

.box {
  max-width: 900px;
  width: 90%;
  margin: 50px auto;
  padding: 40px 48px;
  border: var(--border);
  background: var(--white-glass);
  box-shadow: var(--shadow);
  /* soft fade-up on load */
  animation: fadein 0.55s ease both;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* stagger siblings */
.box:nth-child(2) { animation-delay: 0.1s; }
.box:nth-child(3) { animation-delay: 0.2s; }
.box:nth-child(4) { animation-delay: 0.3s; }

/* ============================================================
   RETURN LINK
   ============================================================ */

.return {
  width: min(90%, 400px);
  margin: 30px auto;
  padding: 10px 20px;
  border: var(--border);
  background: var(--white-glass);
  text-align: center;
  box-shadow: var(--shadow);
  transition: background 0.2s;
  font-family: 'IM Fell English', Courier, serif;
  font-style: italic;
}

.return:hover {
  background: rgba(255, 255, 255, 0.65);
}

.return a {
  font-family: inherit;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
}

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

/* ============================================================
   ORNAMENT HELPERS  (optional utility classes)
   ============================================================ */

/* centred decorative divider: <div class="ornament">✦</div> */
.ornament {
  text-align: center;
  color: var(--gold-pale);
  font-size: 1rem;
  letter-spacing: 0.6em;
  margin: 1.8em 0;
  user-select: none;
}
.ornament::before { content: "❧  "; }
.ornament::after  { content: "  ❧"; }

/* pull-quote / callout block */
blockquote {
  border-left: 3px double var(--gold);
  margin: 1.5em 0 1.5em 1em;
  padding: 0.4em 1.2em;
  font-style: italic;
  color: var(--ink-light);
  background: rgba(255,255,255,0.28);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.82em;
  margin-top: 0.4em;
  color: var(--gold);
}
blockquote cite::before { content: "— "; }

/* small inline badge / tag */
.tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.72em;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 0.1em 0.55em;
  color: var(--ink-light);
  vertical-align: middle;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  body { font-size: 0.95rem; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }

  .box {
    padding: 20px 18px;
    margin: 20px auto;
  }

  .return {
    margin: 20px auto;
  }

  table { width: 100%; }
}