/* Leyla Levi's site: the atlas, chosen November 25, 2026.
   Sheets on one board; small, economical type; hairlines only where they divide. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.x-atlas {
  --paper: #fbfbf9; --ink: #161616; --soft: #6c6c68; --line: #dcdcd6; --tint: #efefeb;
  --m: clamp(14px, 2.2vw, 32px); --g: 8px;
  background: var(--paper); color: var(--ink);
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.42;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.x-atlas main a, .x-atlas .mast a { color: inherit; text-decoration: none; }
.x-atlas main a:focus-visible, .x-atlas .mast a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.x-atlas main p a, .x-atlas dd a, .x-atlas .return { text-decoration: underline; text-decoration-color: #a9a9a3; text-underline-offset: 3px; }
.x-atlas main p a:hover, .x-atlas dd a:hover { text-decoration-color: currentColor; }

.x-atlas .mast { display: flex; justify-content: space-between; padding: 14px var(--m) 0; font-weight: 500; }
.x-atlas .mast nav { display: flex; gap: 22px; }
.x-atlas .mast nav a { color: var(--soft); }
.x-atlas .mast nav a:hover, .x-atlas .mast nav a[aria-current] { color: var(--ink); }

.x-atlas .skip { position: absolute; left: 8px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 500; transform: translateY(-300%); }
.x-atlas .skip:focus { transform: none; outline: 2px solid var(--ink); outline-offset: 2px; }

.x-atlas .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--m); margin: 0 var(--m); padding: 12px 0 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); }

/* Lede */
.x-atlas .lede { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); padding: clamp(22px, 2.6vw, 40px) var(--m) clamp(18px, 2vw, 28px); align-items: end; }
.x-atlas .lede h1 { grid-column: 1 / 5; font-size: clamp(34px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: .95; }
.x-atlas .lede > p:first-of-type { grid-column: 5 / 10; max-width: 46em; }
.x-atlas .info-n, .x-atlas .plate-no, .x-atlas .pager span { color: var(--soft); }

/* The board: four sheets, two by two */
.x-atlas .sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 36px) var(--m); padding: 0 var(--m) clamp(40px, 5vw, 70px); align-items: start; }
.x-atlas .sheet { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto auto; gap: var(--g); border-top: 1px solid var(--ink); padding-top: var(--g); scroll-margin-top: 12px; }
.x-atlas .cell { position: relative; display: block; background: var(--tint); aspect-ratio: 3 / 2; overflow: hidden; }
.x-atlas .cell img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.x-atlas .cell img { object-position: var(--focus, 50% 50%); }
.x-atlas .cell.is-portrait img { object-position: var(--focus, 50% 32%); } /* thumbnail only; the plate is shown whole on the project page */
.x-atlas .cell-lead { grid-row: 1 / 3; grid-column: 1; aspect-ratio: auto; }
.x-atlas .cell:hover img { opacity: .86; }
.x-atlas .plate-no { font-size: 11px; }
.x-atlas .cell-info { padding: 2px 0 0 4px; align-self: start; font-size: 13px; line-height: 1.35; height: 0; min-height: 100%; } /* the photographs set the row height, not the text */
.x-atlas .sheet-3 .cell-info { grid-column: 2 / 4; height: auto; min-height: 0; }
.x-atlas .cell-info h2 { font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 1px 0 5px; }
.x-atlas .cell-info h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.x-atlas .cell-info p { color: var(--soft); }
.x-atlas .cell-info .info-prose { margin-top: 6px; color: var(--ink); max-width: 34em; }
.x-atlas .sheet-credit { grid-column: 1; font-size: 11px; color: var(--soft); }

/* Entry (project page) */
.x-atlas .entry-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--m); padding: clamp(22px, 2.6vw, 40px) var(--m) clamp(26px, 3vw, 44px); align-items: start; }
.x-atlas .entry-title h1 { font-size: clamp(34px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: .98; margin: 2px 0 8px; text-wrap: balance; }
.x-atlas .entry-title p + p { margin-top: 18px; }
.x-atlas .facts > div { display: grid; grid-template-columns: 6.6em 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.x-atlas .facts > div:first-child { border-top-color: var(--ink); }
.x-atlas .facts > div.span { grid-template-columns: 1fr; gap: 3px; }
.x-atlas .facts dt, .x-atlas .facts li span { color: var(--soft); }
.x-atlas .facts-prose { border-top: 1px solid var(--ink); padding-top: 6px; }
.x-atlas .facts-prose p + p { margin-top: .8em; }
.x-atlas .entry-title .also { font-style: italic; margin: -2px 0 8px; }
/* Reading column for projects Leyla added: the heading hangs in the first column, the words sit in the middle two. */
.x-atlas .entry-text { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--m); padding: 0 var(--m) clamp(30px, 4vw, 56px); }
.x-atlas .entry-quote { grid-column: 2 / 4; margin: 0 0 clamp(26px, 3vw, 44px); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.18; letter-spacing: -.02em; max-width: 24em; }
.x-atlas .text-section { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--ink); padding: 8px 0 clamp(22px, 2.6vw, 36px); }
.x-atlas .text-section h2 { grid-column: 1; font-size: 14px; font-weight: 600; }
.x-atlas .text-section > div { grid-column: 2 / 4; font-size: 17px; line-height: 1.45; }
.x-atlas .text-section p { max-width: 36em; }
.x-atlas .text-section p + p { margin-top: .9em; }
.x-atlas .plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 36px) var(--m); padding: 0 var(--m); align-items: start; }
.x-atlas .plate { border-top: 1px solid var(--ink); padding-top: var(--g); scroll-margin-top: 12px; }
.x-atlas .plate img { width: 100%; background: var(--tint); }
.x-atlas .plate.is-portrait img { width: 66.67%; }
.x-atlas .plate:target figcaption .plate-no { background: var(--ink); color: var(--paper); padding: 0 5px; }
.x-atlas .plate figcaption { display: grid; grid-template-columns: 3em 1fr auto; gap: 10px; margin-top: 7px; font-size: 12px; }
.x-atlas .cap-credit, .x-atlas .about-portrait figcaption { color: var(--soft); }
.x-atlas .pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; margin: clamp(40px, 5vw, 70px) var(--m) 0; padding: 12px 0 clamp(40px, 5vw, 70px); border-top: 1px solid var(--ink); font-weight: 500; }
.x-atlas .pager a:last-child { text-align: right; }
.x-atlas .pager a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About */
.x-atlas .about { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px var(--m); padding: clamp(22px, 2.6vw, 40px) var(--m) clamp(50px, 6vw, 90px); align-items: start; }
.x-atlas .about-head { grid-column: 1 / 3; }
.x-atlas .about-head h1 { font-size: clamp(34px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: .95; margin-bottom: 18px; }
.x-atlas .about-head p { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.18; letter-spacing: -.02em; max-width: 20em; }
.x-atlas .about-portrait { grid-column: 1 / 2; grid-row: 2; border-top: 1px solid var(--ink); padding-top: var(--g); }
.x-atlas .about-portrait figcaption { margin-top: 7px; font-size: 12px; }
.x-atlas .about-text { grid-column: 2 / 4; grid-row: 2; border-top: 1px solid var(--ink); padding-top: 8px; font-size: 17px; line-height: 1.45; }
.x-atlas .about-text p { max-width: 36em; }
.x-atlas .about-text p + p { margin-top: .9em; }
.x-atlas .about-facts { grid-column: 4 / 5; grid-row: 2; }

@media (max-width: 1199px) {
  .x-atlas .sheets, .x-atlas .plates { grid-template-columns: 1fr; }
  .x-atlas .lede h1, .x-atlas .lede > p:first-of-type { grid-column: 1 / -1; justify-self: start; }
  .x-atlas .lede { row-gap: 14px; }
  .x-atlas .entry-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-atlas .entry-text { grid-template-columns: 1fr; }
  .x-atlas .entry-quote, .x-atlas .text-section h2, .x-atlas .text-section > div { grid-column: 1 / -1; }
  .x-atlas .text-section { grid-template-columns: 1fr; row-gap: 8px; }
  .x-atlas .about { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-atlas .about-head, .x-atlas .about-text { grid-column: 1 / -1; grid-row: auto; }
  .x-atlas .about-portrait, .x-atlas .about-facts { grid-column: auto; grid-row: auto; }
}
@media (max-width: 599px) {
  .x-atlas .entry-head, .x-atlas .about { grid-template-columns: 1fr; }
  .x-atlas .about-portrait { max-width: 62%; }
  .x-atlas .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-atlas .cell-lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .x-atlas .cell-info, .x-atlas .sheet-3 .cell-info { grid-column: 1 / -1; grid-row: 1; padding: 0 0 4px; height: auto; min-height: 0; }
  .x-atlas .sheet-credit { grid-column: 1 / -1; }
  .x-atlas .sheet-3 .cell-small { grid-column: span 1; }
  .x-atlas .plate figcaption { grid-template-columns: 3em 1fr; }
  .x-atlas .cap-credit { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .x-atlas * { transition: none !important; } }
