/*
Theme Name: Ideonauts
Theme URI: https://ideonauts.com/
Author: Agency002
Description: A gallery platform, built like a white cube — light walls, generous space, the work
             carrying the colour. Every work and artist is shown the same way: a full image fading
             into the page, then the title and the words. Each artist can hang their room in their
             own palette.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ideonauts
*/

/* The default room: a white cube. Every colour below is a variable, and an artist's page can
   replace the whole set — see ideo_palette() — so a room can be lit for the work in it. */
:root{
  --bg:#fcfcfb;
  --bg-rgb:252,252,251;
  --soft:#f4f3f0;
  --ink:#16181a;
  --mut:#6f757a;
  --line:#e6e4df;
  --accent:#2f6b4a;
  /* the name is two words and two colours: ideo is a plant, nauts is the sea.
     Light through dark of each, so they can be used without shouting. */
  --green-1:#8fbfa3;  --green-2:#2f6b4a;  --green-3:#1b4230;
  --blue-1:#7fa8c4;   --blue-2:#1d4e70;   --blue-3:#0e2b41;
  --accent-2:#1d4e70;
  --max:1180px;
  --display:"Cormorant Garamond",Georgia,serif;
  --sans:"Inter",-apple-system,"Segoe UI",system-ui,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);
  font-size:17px;line-height:1.72;-webkit-font-smoothing:antialiased;
  transition:background .4s ease,color .4s ease}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.wrap{width:min(var(--max),calc(100% - 2.6rem));margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- header ---------- */
.site-head{position:fixed;top:0;left:0;right:0;z-index:50;
  background:linear-gradient(180deg,rgba(var(--bg-rgb),.9),rgba(var(--bg-rgb),0));
  transition:background .3s,border-color .3s}
.site-head.solid{background:rgba(var(--bg-rgb),.94);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line)}
.head-in{display:flex;align-items:center;gap:1.4rem;min-height:76px}
.brand{font-family:var(--display);font-size:1.55rem;letter-spacing:.04em;margin-inline-end:auto;font-weight:600}
.brand{color:var(--green-2)}
.brand span{color:var(--blue-2)}
.hero-fade .kicker{color:var(--blue-2)}
.badge,.artist-card .badge{color:var(--green-2);border-color:var(--green-2)}
.entry-text a{color:var(--blue-2)}
.ideo-form input:focus,.ideo-form textarea:focus{border-bottom-color:var(--green-2)}
.nav{display:flex;gap:.2rem;align-items:center;flex-wrap:wrap}
.nav a{font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:var(--mut);
  padding:.5rem .85rem;border-radius:4px;transition:color .18s}
.nav a:hover,.nav a.on{color:var(--ink)}
.burger{display:none;background:none;border:1px solid var(--line);color:var(--ink);
  border-radius:4px;padding:.4rem .6rem;cursor:pointer}

/* ---------- THE FORMAT: image fading into the page, then title and text ----------
   Identical for a work and for an artist. The fade always dissolves into whatever the room's
   background is, which is why it is built from --bg-rgb rather than a fixed colour. */
.hero-fade{position:relative;width:100%;min-height:min(90vh,900px);overflow:hidden;
  display:flex;align-items:flex-end;justify-content:center}
.hero-fade .shot{position:absolute;inset:0}
.hero-fade .shot img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-fade::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,
    rgba(var(--bg-rgb),.72) 0%,
    rgba(var(--bg-rgb),.05) 22%,
    rgba(var(--bg-rgb),.30) 52%,
    rgba(var(--bg-rgb),.86) 80%,
    rgba(var(--bg-rgb),1) 100%)}
.hero-fade .caption{position:relative;z-index:2;text-align:center;padding:0 1.5rem 4.5rem;max-width:54rem}
.hero-fade .kicker{font-size:.7rem;letter-spacing:.3em;text-transform:uppercase;color:var(--accent);
  margin-bottom:1rem;font-weight:600}
.hero-fade h1{font-family:var(--display);font-weight:500;letter-spacing:-.012em;line-height:1.04;
  font-size:clamp(2.5rem,6.2vw,5rem);margin:0}
.hero-fade .sub{color:var(--mut);margin-top:.9rem;font-size:1.02rem;letter-spacing:.03em}

/* the words beneath the fade */
.entry-text{max-width:43rem;margin:0 auto;padding:1rem 1.5rem 6rem;font-size:1.08rem;line-height:1.9}
.entry-text p{margin:0 0 1.35rem}
.entry-text p:first-of-type{font-size:1.22rem;line-height:1.75}
.entry-text h2,.entry-text h3{font-family:var(--display);font-weight:500;margin:2.4rem 0 .8rem;
  font-size:1.8rem;letter-spacing:-.01em}
.entry-text a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.entry-meta{max-width:43rem;margin:0 auto;padding:0 1.5rem 1.8rem;color:var(--mut);
  font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;text-align:center}
.entry-meta a{border-bottom:1px solid var(--line)}
.entry-meta a:hover{color:var(--ink)}

/* ---------- the wall: works hung with labels beneath, as in a gallery ---------- */
.sec{padding:4.5rem 0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:2.2rem}
.sec-head h2{font-family:var(--display);font-weight:500;font-size:clamp(1.8rem,3.4vw,2.7rem);margin:0}
.sec-head a{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--mut)}
.sec-head a:hover{color:var(--ink)}

.works{display:grid;gap:2.4rem 1.8rem;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.work-card{display:block}
.work-card .frame{aspect-ratio:4/5;overflow:hidden;background:var(--soft)}
.work-card img{width:100%;height:100%;object-fit:cover;
  transition:transform .9s cubic-bezier(.2,.7,.2,1),opacity .3s}
.work-card:hover img{transform:scale(1.035)}
/* the wall label */
.work-card .label{padding:.85rem .1rem 0}
.work-card .t{font-family:var(--display);font-size:1.22rem;line-height:1.3;display:block}
.work-card .by{display:block;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--mut);margin-top:.3rem}

/* ---------- artists ---------- */
.artists{display:grid;gap:2rem 1.6rem;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.artist-card{text-align:center}
.artist-card .portrait{aspect-ratio:1;border-radius:50%;overflow:hidden;background:var(--soft);
  margin:0 auto .95rem;width:min(170px,68%)}
.artist-card .portrait img{width:100%;height:100%;object-fit:cover;
  filter:grayscale(.3);transition:filter .45s}
.artist-card:hover .portrait img{filter:none}
.artist-card .n{font-family:var(--display);font-size:1.32rem}
.artist-card .r{font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:var(--mut);margin-top:.25rem}
.badge{display:inline-block;font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent);border:1px solid var(--accent);border-radius:999px;
  padding:.15rem .6rem;margin-top:.55rem;opacity:.75}

/* ---------- footer ---------- */
.site-foot{border-top:1px solid var(--line);padding:3.2rem 0 3.6rem;color:var(--mut);font-size:.86rem}
.foot-in{display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.site-foot a:hover{color:var(--ink)}
.foot-nav{display:flex;gap:1.3rem;flex-wrap:wrap}

/* ---------- misc ---------- */
.pager{display:flex;justify-content:space-between;gap:1rem;padding:1.5rem 0 4rem}
.pager a{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--mut)}
.pager a:hover{color:var(--ink)}
.empty{color:var(--mut);padding:3rem 0}

@media (max-width:760px){
  .burger{display:block}
  .nav{display:none;position:absolute;top:76px;left:0;right:0;background:rgba(var(--bg-rgb),.98);
    flex-direction:column;align-items:stretch;padding:.5rem 1.3rem 1.2rem;border-bottom:1px solid var(--line)}
  .nav.open{display:flex}
  .hero-fade{min-height:72vh}
  .hero-fade .caption{padding-bottom:3rem}
  .works{gap:2rem 1.2rem}
}

/* ---------- contact form ---------- */
.ideo-form{max-width:43rem;margin:0 auto;padding:0 1.5rem 6rem}
.ideo-form form{display:flex;flex-direction:column;gap:1.1rem}
.ideo-row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
.ideo-form label{display:flex;flex-direction:column;gap:.4rem}
.ideo-form label span{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--mut)}
.ideo-form input,.ideo-form textarea{
  font:inherit;font-size:1rem;color:var(--ink);background:var(--bg);
  border:0;border-bottom:1px solid var(--line);border-radius:0;
  padding:.7rem .1rem;transition:border-color .25s;width:100%}
.ideo-form textarea{resize:vertical;line-height:1.7}
.ideo-form input:focus,.ideo-form textarea:focus{outline:none;border-bottom-color:var(--accent)}
.ideo-form input::placeholder{color:var(--mut);opacity:.55}
.ideo-form button{
  align-self:flex-start;margin-top:.8rem;cursor:pointer;
  font:inherit;font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;font-weight:600;
  color:var(--bg);background:var(--ink);border:1px solid var(--ink);
  padding:.95rem 2.2rem;border-radius:999px;transition:background .25s,color .25s}
.ideo-form button:hover{background:transparent;color:var(--ink)}
/* the honeypot must be reachable by a script and invisible to a person */
.ideo-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ideo-note{padding:.9rem 1.1rem;margin:0 0 1.6rem;font-size:.95rem;border-inline-start:2px solid var(--accent);background:var(--soft)}
.ideo-note.ok{border-inline-start-color:var(--accent)}
.ideo-note.bad{border-inline-start-color:#b4443c}
@media (max-width:620px){ .ideo-row{grid-template-columns:1fr} }
