/*
Theme Name: Παναγιώτης Νάνος
Description: Ελληνικό θέμα για τη βιογραφία και το έργο του Παναγιώτη Νάνου.
Version: 1.2.2
Update URI: https://nannos.gr/theme-updates/panagiotis-nanos.json
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: panagiotis-nanos
*/
:root{--paper:#f5efe3;--ink:#392820;--night:#713d2b;--muted:#625047;--gold:#e6ba7e;--rust:#87422e;--line:#c9c5b6;--serif:"Noto Serif Display",Georgia,"Times New Roman",serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-size:1rem;line-height:1.7}
a{color:inherit;text-underline-offset:.28em}
a:hover{color:var(--rust)}
:focus-visible{outline:2px solid currentColor;outline-offset:5px}
img{display:block;width:100%;height:auto}
figure{margin:0}
figcaption{font-size:.84rem;margin-top:.65rem;color:var(--muted)}
h1,h2,h3{font-weight:400;line-height:1.1;margin:0 0 .5em}
h1{font-size:clamp(3.1rem,7.7vw,8rem);letter-spacing:-.065em}
h2{font-size:clamp(2.5rem,5vw,5.25rem);letter-spacing:-.055em}
h3{font-size:clamp(1.6rem,2.7vw,2.55rem);letter-spacing:-.035em}
p{margin:0 0 1rem}
.wrap{width:min(90%,82rem);margin-inline:auto}
.site-head,.hero-frame{background:var(--night);color:var(--paper)}
.site-head{border-bottom:1px solid #ffffff2a}
.mast,.foot{display:flex;align-items:center;justify-content:space-between;gap:1rem 2.5rem;flex-wrap:wrap}
.mast{padding:1rem 0}
.brand-wrap,.foot p{margin:0}
.brand{font-size:1.45rem;text-decoration:none;white-space:nowrap}
.mast nav{display:flex;flex-wrap:wrap;align-items:center;gap:0 1.3rem;font-size:.9rem}
.mast nav a,.mast nav summary{display:inline-block;padding:.55rem 0;text-decoration:none}
.mast a:hover,.mast summary:hover,.hero a:hover{color:var(--gold)}
.art-menu{position:relative}
.art-menu summary{cursor:pointer;white-space:nowrap}
.art-menu summary::after{content:"+";margin-left:.4em;color:var(--gold)}
.art-menu[open] summary::after{content:"−"}
.art-menu ul{position:absolute;z-index:3;right:0;min-width:13rem;margin:0;padding:.45rem 1rem;list-style:none;background:var(--night);border:1px solid #ffffff45;box-shadow:0 .6rem 1.6rem #0004}
.art-menu li+li{border-top:1px solid #ffffff25}
.art-menu ul a{display:block}
.hero,.split,.album-feature{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.8rem,5vw,6rem)}
.hero-frame{background:radial-gradient(ellipse at 78% 85%,#e9c3a9,var(--night) 62%)}
.hero{padding-block:clamp(2.5rem,6vw,6rem);min-height:min(78svh,57rem);grid-template-columns:1fr .95fr}
.hero h1{margin-bottom:.32em}
.hero figure img{aspect-ratio:1.06;object-fit:cover;object-position:center;border-radius:45% 45% 0 0 / 34% 34% 0 0;filter:saturate(.83);outline:1px solid #d1ac765c;outline-offset:7px}
.hero figcaption{color:#604b3f;margin-top:1rem}
.eyebrow{color:var(--rust);font-weight:650;font-size:.875rem;letter-spacing:.13em;margin-bottom:1.25rem}
.hero .eyebrow{color:var(--gold)}
.lead{font-size:clamp(1.18rem,2vw,1.57rem);line-height:1.55;max-width:31rem;color:#574134}
.button{display:inline-block;border:1px solid #ddbb8580;color:var(--paper);padding:.7rem 1rem;text-decoration:none;margin:.35rem .4rem .15rem 0}
.button:first-child{background:var(--gold);color:var(--night);border-color:var(--gold)}
.button:hover{box-shadow:inset 0 0 0 1px var(--gold)}
.hero .button:first-child:hover{color:var(--night);background:#f1ce9c}
.section{padding-block:clamp(3.75rem,8vw,8rem)}
section[id],article[id]{scroll-margin-top:1.5rem}
.intro{max-width:54rem}
#bio{background:#f0e4d4}
#bio .intro{max-width:68rem;margin-inline:auto;display:grid;grid-template-columns:1fr 1.3fr;gap:0 3rem}
#bio h2,#bio .eyebrow{grid-column:1}
#bio h2{grid-row:2 / span 4}
#bio p:not(.eyebrow){grid-column:2}
#dimos .lake img{aspect-ratio:auto;border-block:.5rem solid var(--ink)}
#books{background:#e9dfcc}
.items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 2.1rem;margin-top:2rem}
.work{min-width:0;border-top:1px solid var(--line);padding:1.4rem .5rem 0 0}
.work p{max-width:58ch}
.meta{font-size:.875rem;font-weight:600;color:var(--muted);margin-bottom:.78rem}
#books .work{padding:1.7rem;border:1px solid #b8ab96;background:#f7f0e3;box-shadow:inset .34rem 0 #aa6a4d}
#books .work:nth-child(even){box-shadow:inset .34rem 0 #986c4e}
.poems{background:#f2e1d2;color:#392820}
.poems .work{border-color:#b88f7e}
.poems .meta,.poems a:hover{color:#763821}
#art{background:#f7efe1}
.album-feature{grid-template-columns:minmax(0,.75fr) minmax(0,1fr);padding:1.6rem clamp(1.2rem,4vw,3.75rem);margin-top:2rem;background:#eee1cd}
.album-feature figure{max-width:25rem;width:100%;margin-inline:auto}
.album-feature img{max-height:30rem;object-fit:contain}
.album-feature .work{border-top:0}
#archives{background:#efe5d7}
#interviews{background:#f7f2e8}
#interviews .items{display:block}
#interviews .work{display:grid;grid-template-columns:minmax(9rem,1fr) minmax(0,2.7fr);gap:0 1.5rem}
#interviews .work .meta{grid-column:1;grid-row:1 / span 3}
#interviews .work h3,#interviews .work p:not(.meta){grid-column:2}
footer{background:var(--night);color:var(--paper)}
footer a:hover{color:var(--gold)}
.foot{padding-block:1.7rem;font-size:.9rem}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:.5rem;z-index:5;background:white;padding:.6rem}
.wp-site-blocks{padding:0}
.wp-site-blocks>*{margin-block:0}
@media(max-width:780px){
  .mast{align-items:flex-start;gap:.5rem}
  .mast nav{gap:0 .95rem}
  .hero,.split,.album-feature,.items,#bio .intro{grid-template-columns:minmax(0,1fr)}
  #bio h2,#bio p:not(.eyebrow),#bio p:nth-child(3){grid-column:auto;grid-row:auto}
  .hero{min-height:0}
  .hero h1{font-size:clamp(3.05rem,12vw,5.8rem)}
  .hero figure{max-width:34rem;width:100%;margin-inline:auto}
  .hero figure img{aspect-ratio:1.32}
  #interviews .work{display:block}
  .art-menu ul{right:auto;left:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* Anthemion and olive ornament. */
:root {
  --stone: #fff8ec;
  --clay: #87452f;
  --ornament: url("anthemion.png");
}
.site-head,.hero-frame,footer {color:var(--ink);background-color:var(--stone)}
.site-head {border-bottom:1px solid #ad765854}
.hero-frame {
  background-image:
    radial-gradient(ellipse at 91% 70%,#e3ad8b70,transparent 57%),
    linear-gradient(120deg,#fffaf1,#f1dec8);
  background-color:var(--stone);
}
.hero-frame::after,footer::before {
  content:"";
  display:block;
  height:48px;
  border-block:1px solid #aa6a4d55;
  background:#e9cfb747 var(--ornament) repeat-x center / 144px 44px;
}
.hero-frame::after {opacity:.86}
.hero figure img {outline-color:#b47c5d;border-radius:46% 46% 0 0 / 29% 29% 0 0}
.hero .eyebrow,.mast a:hover,.mast summary:hover,.hero a:hover,footer a:hover {color:var(--clay)}
.art-menu summary::after {color:var(--clay)}
.art-menu ul {background:var(--stone);border-color:#ad76586b;box-shadow:0 .6rem 1.6rem #54352628}
.art-menu li+li {border-color:#ad76584d}
.button {color:var(--clay);border-color:#9f674a}
.button:first-child {background:#9a5038;color:white;border-color:#9a5038}
.hero .button:first-child:hover {background:#763b28;color:white}
#bio,#books,#archives,.poems {background-image:linear-gradient(110deg,#fffcf45e,transparent 75%)}
#dimos .lake img {border-color:#a7674a}
#art .album-feature {
  border-block:1px solid #ad765855;
  background-image:linear-gradient(125deg,#fcf4e6,#ead9bf);
}

.work-with-cover {
  display:grid;
  grid-template-columns:4rem minmax(0, 1fr);
  align-items:start;
  gap:.85rem;
}
.work-with-cover .book-cover {margin:0}
.work-with-cover .book-cover img {
  width:100%;
  height:auto;
  border:1px solid #b8ab96;
  box-shadow:0 .25rem .7rem #54352626;
}
.work-with-cover a {overflow-wrap:anywhere}
@media(max-width:420px) {
  .work-with-cover {grid-template-columns:3.25rem minmax(0,1fr);gap:.65rem;padding:1rem}
}

#interviews .work-with-cover {
  display:grid;
  grid-template-columns:5rem minmax(0,1fr);
}
@media(max-width:420px) {
  #interviews .work-with-cover {grid-template-columns:3.75rem minmax(0,1fr)}
}

.credits-wrap {padding-bottom:1.4rem}
.image-credits {font-size:.875rem}
.image-credits summary {cursor:pointer;width:fit-content}
.image-credits ul {padding-inline-start:1.25rem;margin-bottom:0}

.video-section video { width: 100%; height: auto; }

.photo-carousel .wp-block-gallery.has-nested-images {
  display:flex;
  flex-wrap:nowrap;
  gap:0;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}
.photo-carousel .wp-block-gallery.has-nested-images > figure.wp-block-image {
  flex:0 0 100%;
  width:100%;
  margin:0;
  scroll-snap-align:start;
}
.photo-carousel .wp-block-gallery.has-nested-images > figure.wp-block-image img {
  width:100%;
  max-height:36rem;
  object-fit:contain;
}
.photo-carousel-controls {display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-top:.75rem}
.photo-carousel-controls button {font:inherit;color:inherit;background:var(--stone);border:1px solid #ad7658;padding:.55rem .85rem;cursor:pointer}
@media(prefers-reduced-motion:no-preference) {
  .photo-carousel .wp-block-gallery {scroll-behavior:smooth}
}
