/*
Theme Name: Léa Berger
Theme URI: https://lea-berger.com
Author: Léa Berger
Description: Custom theme for Le Français Essentiel — French survival lessons for travellers. Creates its pages, menu and reading settings on activation.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lea-berger
*/

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
	--plaque: #1B2F5B;      /* Paris street-sign enamel blue */
	--plaque-deep: #13234A;
	--frame: #2F6B4E;       /* green frame of the plaques */
	--paper: #FBFBF8;
	--ink: #16191F;
	--mist: #E4E8EF;
	--signal: #B8322A;      /* métro red, used only for prices */
	--muted: #5A6170;
	--display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--text: "Source Serif 4", Georgia, "Times New Roman", serif;
	--wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	font-size: 1.125rem;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--plaque); text-underline-offset: 0.18em; }
a:hover { color: var(--frame); }
:focus-visible { outline: 3px solid var(--frame); outline-offset: 3px; }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.005em;
	margin: 0 0 0.5em;
	color: var(--plaque-deep);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--mist); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.7rem; text-decoration: none; color: var(--plaque-deep); line-height: 1; }
.wordmark small { display: block; font-family: var(--text); font-weight: 400; font-style: italic; font-size: 0.95rem; color: var(--muted); margin-top: .2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.nav a { font-family: var(--display); font-weight: 500; font-size: 1.25rem; text-decoration: none; color: var(--ink); padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current a { border-bottom-color: var(--frame); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--display); font-weight: 600; font-size: 1.3rem;
	text-decoration: none; line-height: 1;
	padding: .85rem 1.4rem;
	border-radius: 6px;
	background: var(--plaque); color: #fff;
	border: 2px solid var(--plaque);
}
.btn:hover { background: var(--plaque-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--plaque); }
.btn.ghost:hover { background: var(--mist); color: var(--plaque-deep); }

/* ---------- the enamel plaque (the one bold element) ---------- */
.plaque {
	background: var(--plaque);
	color: #fff;
	border-radius: 14px;
	padding: 10px;
	border: 5px solid var(--frame);
	box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
}
.plaque-inner {
	border: 2px solid rgba(255,255,255,.9);
	border-radius: 8px;
	padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.2rem, 3vw, 2rem);
	text-align: center;
}
.plaque .fr {
	font-family: var(--display); font-weight: 600;
	font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02;
	margin: 0; color: #fff;
}
.plaque .sub { font-family: var(--display); font-weight: 500; font-size: 1.15rem; opacity: .8; margin: .6rem 0 0; }
.say { margin-top: 1.1rem; }
.say .phon { font-style: italic; font-size: 1.35rem; color: var(--plaque-deep); margin: 0; }
.say .en { color: var(--muted); margin: .1rem 0 0; }

/* ---------- home ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .lead { font-size: 1.25rem; max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .note { font-size: .95rem; color: var(--muted); margin-top: .9rem; }

.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--mist); }
.band.blue { background: var(--plaque-deep); color: #EEF1F7; border-top: 0; }
.band.blue h2 { color: #fff; }
.band.blue a { color: #fff; }

.lesson-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2.4rem; margin: 2rem 0 0; }
.lesson-parts dt { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--plaque-deep); border-top: 3px solid var(--frame); padding-top: .6rem; }
.lesson-parts dd { margin: .3rem 0 0; color: var(--muted); }

.books { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--mist); }
.books li { display: grid; grid-template-columns: 5rem 1fr auto auto; gap: 1.2rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--mist); }
.books .num { font-family: var(--display); font-weight: 600; font-size: 2.6rem; color: var(--frame); line-height: 1; }
.books h3 { margin: 0; font-size: 1.5rem; }
.books p { margin: .1rem 0 0; color: var(--muted); font-size: 1rem; }
.books .price { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--signal); white-space: nowrap; }
.books .btn { font-size: 1.1rem; padding: .6rem 1rem; }
.books li.pack { background: var(--mist); padding-inline: 1rem; border-radius: 8px; border-bottom: 0; margin-top: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prices { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 1.15rem; }
.prices strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.band.blue .btn { background: #fff; color: var(--plaque-deep); border-color: #fff; }
.band.blue .btn:hover { background: var(--mist); }

.posts { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.posts li { padding: 1rem 0; border-bottom: 1px solid var(--mist); }
.posts a { font-family: var(--display); font-weight: 600; font-size: 1.55rem; text-decoration: none; color: var(--plaque-deep); }
.posts a:hover { color: var(--frame); }
.posts time { display: block; font-size: .9rem; color: var(--muted); }
.posts p { margin: .3rem 0 0; color: var(--muted); }

/* ---------- pages & posts ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head time { color: var(--muted); }
.entry { padding-bottom: 4rem; }
.entry > * { max-width: 40rem; }
.entry h2 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--frame); font-style: italic; }
.entry table { border-collapse: collapse; width: 100%; max-width: 44rem; font-size: 1rem; display: block; overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--mist); vertical-align: top; }
.entry th { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--plaque-deep); }
.entry td em { color: var(--plaque-deep); }
.entry .callout { background: var(--mist); border-radius: 8px; padding: 1.2rem 1.4rem; }
.entry .callout p:last-child { margin: 0; }

.pagination { display: flex; justify-content: space-between; padding: 2rem 0 4rem; font-family: var(--display); font-size: 1.25rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--plaque-deep); color: #C9D1E0; padding-block: 2.5rem; font-size: 1rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer .wordmark { color: #fff; font-size: 1.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.hero .wrap, .split { grid-template-columns: 1fr; }
	.lesson-parts { grid-template-columns: 1fr 1fr; }
	.books li { grid-template-columns: 3.5rem 1fr; }
	.books .price, .books .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 520px) {
	.lesson-parts { grid-template-columns: 1fr; }
	body { font-size: 1.0625rem; }
}
