/* 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 .ptitle { display: block; font-size: clamp(26px, 4vw, 52px); line-height: 1.05; color: #e4e2dc; margin-top: 8px; }
.pager a:hover .ptitle { color: #fff; }
/* project (product) names in Jost bold capitals, as on the prints (Nehir 26.11.2026: cards in Jost; then "sitedeki ürün
   başlıklarındaki fontları değiştirmemişsin") */
.ptitle { font-family: Jost, "Century Gothic", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---- readable project layout (KARMA first): hero, short facts, observation next to the detail it shaped.
   Sizes are set so the text reads on a phone without zooming (body 17px, captions 15px). */
.story .hero { margin: 0; }
.story .hero img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.intro-text { padding: 28px 20px 8px; max-width: 1100px; margin: 0 auto; }
.intro-text h1 { margin: 0; font-size: clamp(40px, 9vw, 96px); line-height: .95; color: #f2f0ea; }
.intro-text .tagline { margin: 8px 0 0 2px; font-size: 17px; color: var(--muted); font-style: italic; }
.facts { display: grid; gap: 22px; margin: 30px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { margin-bottom: 6px; color: #c9a46a; }
.facts dd { margin: 0; font-size: 17px; line-height: 1.55; color: #e7e5df; max-width: 60ch; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 36px; } .intro-text { padding: 48px 40px 10px; } }
.pair { padding: 46px 0 10px; max-width: 1500px; margin: 0 auto; }
.pair h2 { margin: 0 20px 16px; color: #c9a46a; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.pair figure { margin: 0; background: #1a1a1b; border: 1px solid var(--line); }
.pair-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; background: #fff; }
.pair figcaption { padding: 12px 12px 16px; font-size: 15px; line-height: 1.5; color: #e7e5df; }
.pair figcaption .small { display: block; margin-bottom: 6px; color: #c9a46a; }
.pair .note { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .pair-grid { gap: 26px; padding: 0 40px; } .pair h2 { margin: 0 40px 20px; } .pair figcaption { padding: 18px 20px 22px; font-size: 17px; } }
.pages-title { margin: 56px 20px 14px; }
@media (min-width: 900px) { .pages-title { margin: 80px 40px 18px; } }

/* ---- "things": a box the objects fall into (things.js) */
.things { padding: clamp(40px, 8vh, 90px) 0 0; }
.things-field { position: relative; height: min(88vh, 820px); overflow: hidden; touch-action: pan-y; cursor: grab;
                user-select: none; -webkit-user-select: none; }
.things-field.grabbing { cursor: grabbing; }
.things-field img { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; pointer-events: none;
                    filter: drop-shadow(4px 8px 10px rgba(0, 0, 0, .45)); }
@media (max-width: 700px) { .things-field { height: 72vh; } }

/* ---- works page: a mosaic, three to a row, edge to edge (Nehir 26.11.2026, from her sketch). Each tile grows by its
   photo's width/height ratio (--r, from build.py), so the row has one height and every photo fits whole. The name sits
   on the photo and shows on hover (always on touch screens); hover also enlarges the photo inside its tile. */
.works { padding: clamp(30px, 6vh, 70px) clamp(16px, 3vw, 40px) 0; max-width: 1500px; margin: 0 auto; }
.works h2 { margin: 0 0 clamp(24px, 4vh, 44px); font-size: clamp(52px, 9vw, 120px); line-height: .95; color: #f2f0ea; }
.works-grid { display: flex; flex-direction: column; gap: 2px; }
.wrow { display: flex; gap: 2px; }
.wrow a { position: relative; flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); overflow: hidden; display: block;
          text-decoration: none; background: #18181a; }
.wrow img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.wrow .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
             background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .3s; }
.wrow .t { display: block; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.05; color: #fff; }
.wrow .small { display: block; margin-top: 4px; color: #d8d6d0; }
.wrow a:hover img, .wrow a:focus-visible img { transform: scale(1.06); }
.wrow a:hover .cap, .wrow a:focus-visible .cap { opacity: 1; }
@media (hover: none) { .wrow .cap { opacity: 1; padding: 26px 8px 7px; } .wrow .t { font-size: 14px; } .wrow .small { font-size: 8px; letter-spacing: .1em; } }
@media (max-width: 700px) { .works { padding-left: 0; padding-right: 0; } .works h2 { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .wrow img, .wrow .cap { transition: none; } }

/* ---- about, footer */
.about { padding: clamp(60px, 12vh, 140px) clamp(16px, 3vw, 40px) 0; max-width: 1500px; margin: 0 auto; }
.about .spread { position: relative; }
.about .spread .book { display: block; width: 100%; height: auto; }
/* the rule lies left of the book, as in the scene (centre 9.6 % from the left; picture 9.79 % of the book picture's
   width, so it keeps the scene's scale) and runs past the book picture's top and bottom edges freely */
.about .spread .ruler { position: absolute; left: 4.7%; top: 50%; width: 9.79%; height: auto; transform: translateY(-50%); pointer-events: none; }
.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 .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; }
