/* Shared by every page. The home page adds its own rules for the opening (see home.html). */
@font-face { font-family: "Maison Salome"; src: url("fonts/MaisonSalome.ttf") format("truetype"); font-display: swap; }
:root { --table: #222223; --paper: #f7f5f0; --ink: #1c1c1e; --muted: #8d8b85; --text: #cfcdc8; --line: #3a3a3b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--table); }
body { font-family: Jost, "Century Gothic", "Trebuchet MS", sans-serif; color: var(--text); font-size: 16px; line-height: 1.55;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.serif { font-family: "Maison Salome", Georgia, serif; font-weight: 400; }
.small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- project pages */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
       padding: 14px clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--table) 88%, transparent); backdrop-filter: blur(8px); }
.bar a { text-decoration: none; }
.bar a:hover { color: #fff; }
.bar h1 { margin: 0; font: inherit; letter-spacing: inherit; color: var(--text); text-align: center; }
@media (max-width: 560px) { .bar h1 { display: none; } }
.sheets { display: grid; gap: clamp(6px, 1vw, 14px); padding: 0 clamp(0px, 3vw, 40px); max-width: 2000px; margin: 0 auto; }
.sheets a { display: block; }
.sheets img { display: block; width: 100%; height: auto; background: #18181a; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: clamp(40px, 8vh, 100px) 0 0; border-top: 1px solid var(--line); }
.pager a { display: block; padding: clamp(26px, 6vh, 64px) clamp(16px, 3vw, 40px); text-decoration: none; }
.pager a + a { border-left: 1px solid var(--line); text-align: right; }
.pager a:hover .serif { color: #fff; }
.pager .serif { display: block; font-size: clamp(30px, 5vw, 64px); line-height: 1.05; color: #e4e2dc; margin-top: 6px; }

/* ---- about, footer */
.about { padding: clamp(60px, 12vh, 140px) clamp(16px, 3vw, 40px) 0; max-width: 1500px; margin: 0 auto; }
.about img.spread { display: block; width: 100%; height: auto; }
.about .text { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); padding-top: clamp(30px, 6vh, 70px); }
.about h2 { margin: 0 0 18px; font-size: clamp(44px, 7vw, 96px); line-height: 1; color: #f2f0ea; }
.about p { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.35vw, 20px); }
.about h3 { margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #c0453f; }
.about h3:first-child { margin-top: 0; }
.about dl { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; row-gap: 8px; }
.about dt { color: var(--muted); }
.about dd { margin: 0; }
.about dd b { font-weight: 400; color: #f2f0ea; display: block; }
/* wide: the rendered About spread carries the text, the typed copy stays for screen readers and search;
   narrow: the spread would be unreadable, so the typed copy is shown instead */
@media (min-width: 761px) { .about .text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 760px) { .about .text { grid-template-columns: 1fr; } .about img.spread { display: none; } }

/* closing section: contact, CV */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(24px, 4vw, 70px);
           padding: clamp(60px, 12vh, 140px) clamp(16px, 3vw, 40px) 0; max-width: 1500px; margin: 0 auto; }
.contact h2 { margin: 6px 0 22px; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; color: #f2f0ea; }
.contact .mail { display: inline-block; font-size: clamp(17px, 1.7vw, 26px); color: #f2f0ea; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.contact .mail:hover { border-color: #fff; }
.contact .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact .buttons a { display: inline-block; padding: 12px 22px; border: 1px solid #77756f; border-radius: 999px; text-decoration: none;
                      font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contact .buttons a.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .buttons a:hover { border-color: #fff; color: #fff; }
.contact .buttons a.primary:hover { background: #fff; color: var(--ink); }
.contact img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.foot { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; justify-content: space-between;
        padding: clamp(50px, 10vh, 120px) clamp(16px, 3vw, 40px) 40px; max-width: 1500px; margin: 0 auto; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot a:hover { color: #fff; border-color: #fff; }
