/* http://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
   margin: 0; padding: 0; border: 0;
   font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
* { box-sizing: border-box; }


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
   --purple:   #A64BC9;   /* purple – borders, headings, accents  */
   --rose:     #D4536C;   /* rose – body text & links             */
   --blush:    #FEA3B4;   /* blush – subtle borders               */
   --cream:    #F6E6CB;   /* cream – background                   */

   --font-name:    'Titillium Web', sans-serif;
   --font-heading: 'Playfair Display', Georgia, serif;
   --font-body:    'Poppins', sans-serif;
   --font-link:    'Roboto Slab', serif;
}


/* ============================================================
   BASE
   ============================================================ */
body {
   background-color: var(--cream);
   font-family: var(--font-body);
   border: 3px solid var(--purple);
   border-radius: 20px;
   margin: 2.5em;
   font-size: 22px;
   color: var(--rose);
   background-size: 35px 35px;
   background-image: repeating-linear-gradient(to right, #16E9DF, #16E9DF 0px, #f4f4ff 1px, #f4f4ff);
}


/* ============================================================
   HEADER
   ============================================================ */
header {
   border-bottom: 3px solid var(--purple);
   padding: 0.5em 2.5em;
   display: flex;
   align-items: center;
   justify-content: space-between;
   border-radius: 17px 17px 0 0;
   background: #fff;
}
header p {
   font-family: var(--font-name);
   font-size: 2.8em;
   color: var(--rose);
   text-decoration-color: var(--blush);
   margin: 0.25em 0;
   line-height: 1.1;
}
header a {
   font-family: var(--font-link);
   font-size: 0.85em;
   font-weight: 500;
   color: var(--rose);
   text-decoration: underline;
   white-space: nowrap;
}
header a:hover { color: var(--blush); }


/* ============================================================
   MAIN
   ============================================================ */
main {
   line-height: 1.5em;
   max-width: 100%;
   text-align: center;
   margin: 2em;
}

/* --- Figure / intro --- */
figure {
   padding: 2em 0;
   margin: 3.5em 8.5em;
   background-color: #FDCE05;
   border-radius: 20px;
   background-image: radial-gradient(#ffeec59f 1.3px, transparent 0px);
   background-size: 20px 20px;
}
img {
   border-radius: 50%;
   border: 3px solid #000;
   max-width: 100%;
   margin-right: 2em;
   padding: 0.2em;
}
figcaption, figure img {
   display: inline-block;
   vertical-align: top;
}
figcaption {
   width: 50%;
   padding-right: 1.2em;
   text-align: left;
}
h1 {
   font-family: var(--font-heading);
   font-style: italic;
   font-size: 2em;
   padding-bottom: 0.7em;
   color: #000;
}
figcaption p {
   font-family: var(--font-body);
   font-size: 0.82em;
   color: #000;
   line-height: 1.7;
}

/* --- Module headings (h2) --- */
h2 {
   font-family: var(--font-heading);
   font-style: italic;
   font-size: 1.4em;
   font-weight: 500;
   border-top:    2.5px solid var(--blush);
   border-bottom: 2.5px solid var(--blush);
   padding: 0.3em;
   margin: 1em 8.5em;
   color: var(--purple);
   background: var(--cream);
}

/* --- Dropdown titles (h3) → Playfair Display --- */
h3 {
   font-family: var(--font-heading);
   font-size: 1.1em;
   font-weight: 600;
   margin-top: 0.8em;
   margin-bottom: 0.3em;
   text-decoration: underline;
   text-decoration-color: var(--blush);
   color: #000;
}

h3:hover {
   color: var(--rose);
}

h3 a {
   text-decoration: none !important;
   color: #000;
}

h3 a:hover {
   color: var(--rose) !important;
   text-decoration-color: var(--rose) !important;
}

/* --- Details / Summary --- */
details {
   margin: 0.6em auto;
   width: 60%;
   text-align: left;
}
details summary {
   cursor: pointer;
   text-align: center;
}
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
summary::marker { content: ""; }

/* --- All links base --- */
main a {
   text-decoration: underline;
   text-underline-offset: 3px;
}

/* --- Direct links → Playfair Display --- */
.submission,
.submission a {
   font-family: var(--font-heading) !important;
   font-size: 1.05em !important;
   font-weight: 600 !important;
   font-style: normal !important;
   color: #000 !important;
}
.submission a:hover {
   color: var(--rose) !important;
   text-decoration-color: var(--rose) !important;
}

/* --- Sub-links inside dropdowns → Roboto Slab --- */
details ul .submission,
details ul .submission a {
   font-family: var(--font-link) !important;
   font-size: 0.95em !important;
   font-weight: 500 !important;
   font-style: normal !important;
   color: #000 !important;
}
details ul .submission a:hover {
   color: var(--purple) !important;
   text-decoration-color: var(--purple) !important;
}

/* --- List spacing --- */
details ul {
   text-align: center;
   padding: 0.4em 0 0.6em;
}
details ul li { padding: 0.25em 0; }

ul { padding: 0.4em 0 0.4em; }
ul li { padding: 0.3em 0; }


/* ============================================================
   FOOTER
   ============================================================ */
footer {
   border-top: 3px solid var(--purple);
}

footer p {
   font-family: var(--font-body);
   font-size: 0.70em;
   font-weight: 500;
   text-align: center;
   margin: 1em 0;
   color: var(--rose);
}