/* NASSOS POLYZOIDIS — illustrated portfolio
   1. Theme & base   2. Header   3. Studio interactions
   4. Reading pages  5. Footer  6. Mobile artwork & responsive rules
   Object outlines and destinations live in index.html, not this file. */

/* 1. THEME & BASE */
:root {
  --ink: #242424;
  --teal: #216476;
  --coral: #be5847;
  --accent: #ed806d;
  --display-font: 'Lilita One', Arial, sans-serif;
  --body-font: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: white; color: var(--ink); font: 16px/1.75 var(--body-font); }
a { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
p { margin: 0 0 18px; }
h1 { margin: 30px 0 22px; color: var(--coral); font: 44px/1.15 var(--display-font); }
h2 { margin: 28px 0 14px; color: var(--coral); font: 23px/1.3 var(--display-font); }
h3 { margin: 0 0 7px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.site { width: 100%; max-width: 1360px; min-height: 100vh; margin: auto; padding: 42px 5% 24px; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 8px; z-index: 10; padding: 8px; background: white; }
.home-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* 2. HEADER */
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; position: relative; z-index: 2; }
.brand { display: inline-block; white-space: nowrap; color: var(--teal); font: 36px/1.1 var(--display-font); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; font-size: 13px; }
nav a { padding: 7px 0; color: #222; text-decoration: none; }
nav a[aria-current='page'] { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
nav i { padding-top: 7px; font-style: normal; }

/* Introductory sentence: home only, attached to the name rather than the artwork. */
.identity { max-width: 530px; }
.introduction {
  max-width: 510px; margin: 12px 0 0;
  color: #454545; font: 400 15px/1.55 var(--body-font);
  letter-spacing: 0;
}
header nav { padding-top: 4px; }

/* 3. STUDIO INTERACTIONS
   Transparent paths are also the click targets: no rectangular hotspots.
   Multiply blending preserves the underlying pencil lines.
   Hovering any part of one object reveals every path in that link. */
/* Lift the entire scene by 50px to restore the earlier homepage spacing.
   Image and SVG share the same wrapper, so their registration is unchanged. */
.studio-scene { position: relative; isolation: isolate; margin-top: -30px; }
.studio-scene > img { display: block; width: 100%; height: auto; }
.studio-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.object-link { cursor: pointer; mix-blend-mode:multiply; }
.object-link:focus-visible { outline: none; }
.wash { fill-opacity: 0; stroke: none; pointer-events: fill; transition:none; }
.object-link:hover .wash, .object-link:focus-visible .wash { fill-opacity: var(--hover-opacity, .64); }
/* Shape-following keyboard marker; absent during ordinary pointer hover. */
.object-link:focus-visible .wash { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 3; }
.metal-wash, .teal { fill: #159b9f; }
.neck-wash { fill: #b77536; }
.wood-wash, .ochre { fill: #e2a324; }
.coral { fill: #ec6651; }
.slate { fill: #418fa9; }
.paper { fill: #f0bc38; }
.hint { margin-top: 18px; font-size: 11px; color: #777; }
.small-explore { display: none; }


/* Deliberately limited vivid palette; the laptop needs a stronger screen wash. */
.object-research { --hover-opacity: .57; }
.object-research .teal { fill: #79bad9; }
.object-research .slate { fill: #739eb1; }
.object-about { --hover-opacity: .5; }
.object-project, .object-teaching { --hover-opacity: .58; }
.object-contact .wash { fill: #ed6852; }
/* About colours are defined per hat/feather shape below. */

/* 4. READING PAGES */
.reading { position: relative; min-height: 680px; margin: 35px -4.35% 0; overflow: hidden; }
article { position: relative; z-index: 1; width: 58%; max-width: 760px; margin-left: 32%; padding: 10px 0 70px; }
.lead { margin-bottom: 28px; font-size: 19px; line-height: 1.5; }
.entry { margin-bottom: 23px; }
.entry p { font-size: 14px; color: #666; }
.note { margin-top: 25px; font-size: 13px; color: #777; }
.project { display: block; margin-bottom: 10px; font-size: 17px; }
.studio-return { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; text-decoration: none; }
.studio-return span { color: var(--coral); font-size: 23px; }
.studio-return:hover { text-decoration: underline; text-underline-offset: 5px; }
.notebook-art {
  position: absolute; inset: 0; pointer-events: none;
  background: url('research-notebook-small-plant.webp') left bottom / 100% auto no-repeat;
  mask-image: linear-gradient(90deg, black 0%, black 23%, transparent 31%), linear-gradient(0deg, black 0%, transparent 22%);
}
.bookshelf-page article { width: 61%; margin-left: 7%; padding-right: 20px; }
.bookshelf-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 33%; pointer-events: none;
  background: url('bookshelf-soft-teal.webp') right top / auto 100% no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 15%);
}
.quiet article { width: 65%; margin-right: auto; margin-left: auto; }

/* 5. FOOTER */
footer { max-width: 640px; margin: 35px auto 10px; text-align: center; color: #333; font: 14px/1.7 Georgia, serif; letter-spacing: 1.6px; }
footer .rule { display: flex; align-items: center; gap: 24px; margin-bottom: 17px; }
footer .rule::before, footer .rule::after { content: ''; height: 1px; background: #90bec6; flex: 1; }
footer .rule b { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* 6. MOBILE ARTWORK & RESPONSIVE RULES */
.small-explore a {
   display: block;
   min-height: 44px;
   font-size: 14px;
   text-decoration: none;
}
/* SVG tiles remain sharp at every pixel density; labels are live text. */
.mobile-doodle { display:block; width:100%; max-width:180px; height:auto; margin:0 auto 12px; }
.small-explore a { text-align:center; }
.small-explore a:focus-visible { outline:2px solid var(--teal); outline-offset:7px; }

@media (max-width: 850px) {
  header { display: block; }
  .brand { font-size: 33px; }
  nav { justify-content: flex-start; margin-top: 20px; }
}
@media (max-width: 650px) {
  .site { padding: 30px 7% 20px; }
  .brand { font-size: 29px; white-space: normal; }
  .introduction { max-width: 34ch; margin-top: 11px; font-size: 15px; line-height: 1.6; }
  nav { margin-top: 15px; }
  nav a { min-height: 44px; }
  .studio-scene, .hint { display: none; }
  .small-explore { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 35px; }
  .reading { min-height: 550px; margin-top: 25px; padding: 0 7%; }
  article, .bookshelf-page article, .quiet article { width: 100%; margin: 0; padding: 0 0 210px; }
  .quiet article { padding-bottom: 40px; }
  .notebook-art { inset: auto 0 0; height: 190px; background-size: 180% auto; mask-image: linear-gradient(0deg, black 50%, transparent); }
  .bookshelf-art { inset: auto 0 0; height: 180px; width: 100%; background-size: auto 280%; background-position: right bottom; mask-image: linear-gradient(0deg, black, transparent); }
  h1 { font-size: 36px; }
  .lead { font-size: 18px; }
  .studio-return { min-height: 44px; }
  footer { font-size: 12px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .wash { transition: none; }
}

/* Optional standalone boundary-review.html, never shown on the normal site. */
.boundary-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px; margin-top: 24px; background: #f4f7f7; font-size: 13px; }
.boundary-tools output { min-width: 250px; font-variant-numeric: tabular-nums; }
.boundary-review:not(.hide-boundaries) .wash { fill-opacity: .25; stroke: #b02a75; stroke-width: 1; vector-effect: non-scaling-stroke; }
@media(max-width:650px) { .boundary-review .studio-scene { display: block; } .boundary-review .small-explore { display: none; } }


/* The standalone review toolbar keeps its own normal spacing. */
.boundary-review .studio-scene { margin-top: 20px; }

/* Plum is applied to the graphite tones directly, avoiding double darkening. */
.object-about { mix-blend-mode:normal; }
.hat-tone { opacity:0; pointer-events:none; transition:none; }
.object-about:hover .hat-tone, .object-about:focus-visible .hat-tone { opacity:.5; }
.object-about .hat-hit { fill:#514557; }
.object-about:hover .hat-hit, .object-about:focus-visible .hat-hit { fill-opacity:0; }
.object-about .feather-green, .object-about .feather-red { mix-blend-mode:multiply; }
.object-about .feather-green { fill:#00a45a; --hover-opacity:.9; }
.object-about .feather-red { fill:#ed3650; --hover-opacity:.9; }



/* Page-specific pencil illustrations, separate from editable HTML text. */
.illustrated-page article { width:61%; margin-left:7%; padding-right:24px; }
.page-sketch { position:absolute; right:0; top:0; bottom:0; width:29%; pointer-events:none; background-repeat:no-repeat; background-position:center bottom; background-size:contain; }
.about-sketch { background-image:url('about-margin.webp'); }
.teaching-sketch { background-image:url('teaching-margin.webp'); }
.music-sketch { background-image:url('music-acoustic-refined.webp'); }
.contact-sketch { background-image:url('contact-margin.webp'); }
@media(max-width:650px) {
 .illustrated-page article { width:100%; margin:0; padding:0 0 350px; }
 .page-sketch { top:auto; bottom:0; right:0; width:100%; height:325px; background-position:center bottom; }
}

/* Contact note: keep raster illustration and editable link registered. */
.contact-note-art { position:absolute; right:0; bottom:0; width:43%; }
.contact-note-art img { display:block; width:100%; height:auto; }
.contact-note-art svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.handwritten-email { pointer-events:auto; fill:#39303f; font:400 48px 'La Belle Aurore',cursive; }
.handwritten-email:hover { fill:var(--teal); }
.handwritten-email:focus-visible { outline:none; }
.handwritten-email:focus-visible text { text-decoration:underline; }
.contact-page article { width:48%; }
@media(max-width:650px) {
 .contact-page article { width:100%; padding-bottom:460px; }
 .contact-note-art { width:min(100%,400px); right:50%; transform:translateX(50%); }
}

/* Tablet/narrow layouts: let decorative images follow text in normal flow.
   This prevents artwork overlap when copy grows or the device rotates. */
@media(max-width:850px) {
 .reading { margin-left:0; margin-right:0; padding:0; min-height:0; }
 .reading article, .bookshelf-page article, .illustrated-page article, .contact-page article { width:100%; max-width:none; margin:0; padding:0; }
 .page-sketch { position:relative; inset:auto; width:100%; height:350px; margin-top:20px; }
 .illustrated-page { display:flex; flex-direction:column; }
 .illustrated-page article { order:0; }
 .page-sketch, .contact-note-art { order:1; }
 .contact-note-art { position:relative; right:auto; bottom:auto; width:min(100%,480px); margin:-80px auto 0; transform:none; }
 .notebook-art, .bookshelf-art { position:relative; inset:auto; width:100%; height:300px; margin-top:20px; background-position:center bottom; }
 .notebook-page, .bookshelf-page { display:flex; flex-direction:column; }
 .notebook-page article, .bookshelf-page article { order:0; }
 .notebook-art, .bookshelf-art { order:1; }
 .notebook-art { background-size:100% auto; mask-image:none; }
 .bookshelf-art { background-size:auto 210%; background-position:right bottom; }
}
@media(prefers-reduced-motion:reduce) { .hat-tone { transition:none; } }

.handwritten-email .email-intro { font-size:48px; }
.handwritten-email .email-address { font-size:40px; letter-spacing:.15px; }
/* Compact publications desk replaces the full-height bookshelf composition. */
.publications-desk-art { position:absolute; right:0; bottom:0; width:41%; pointer-events:none; }
.publications-desk-art img { display:block; width:100%; height:auto; }
@media(max-width:850px) {
 .publications-desk-art { position:relative; right:auto; bottom:auto; order:1; width:min(100%,480px); margin:-100px auto 0; }
}

/* Shelf map: an optional studio discovery, independent of menu categories. */
.object-map { --hover-opacity:.64; }
.map-hit { fill:transparent; stroke:none; pointer-events:fill; }
.map-water { fill:#69b7df; }
.map-land { fill:#c8b583; }
.object-map:focus-visible .wash { stroke:none; }
.object-map:focus-visible .map-hit { stroke:var(--teal); stroke-width:1.2; stroke-dasharray:3 2; }
/* Same site wrapper and header as the other pages. */
.map-content {margin-top:36px;}
.map-content h1 {margin-top:18px;}
.travel-map {display:block;width:100%;height:76vh;min-height:440px;border:0;background:white;}
.map-external {display:inline-block;margin-top:10px;font-size:13px;}
@media(max-width:650px) {
 .map-content {margin-top:24px;}
 .travel-map {height:min(72vh,440px);min-height:380px;}
}


/* Map and hover share the same foreground cut-out. */
.object-map {mix-blend-mode:multiply;}

.object-map .wash {pointer-events:none;}


@media (min-width: 851px) {
  /* Keep the contact sketch at the top as the form increases page height. */
  .contact-note-art {
    top: 0;
    bottom: auto;
  }

  /* Position the teaching sketch beside the opening sections. */
  .teaching-page .teaching-sketch {
    top: 220px;
    bottom: auto;
    height: 620px;
    background-position: center top;
  }

  /* Reserve space beneath the Research text for the notebook illustration. */
  .notebook-page article {
    padding-bottom: clamp(220px, 17vw, 280px);
  }
}


/* Keep publication citations dark and comfortably readable. */
.entry > p {
  font-size: 1rem;
  color: var(--ink, #222);
}


/* Give Music subsections the heading font at a smaller scale. */
.music-page h3,
.notebook-page h3 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: #bd5545;
  margin: 32px 0 16px;
}

