/*
Theme Name: Taylor Amberlyn
Description: Landscape design portfolio.
Version: 1.0.0
*/
:root{--paper:#f8f3e8;--ink:#203b2c;--rust:#a03e29;--rule:#c5c5ae;color:var(--ink);background:var(--paper);font:17px/1.55 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0}a{color:inherit}button{font:inherit;cursor:pointer}img{max-width:100%;display:block}h1,h2,h3,.brand{font-family:Georgia,serif;line-height:1.08}h1{font-size:clamp(2.8rem,7vw,6rem);margin:.18em 0}h2{font-size:clamp(2rem,4vw,3rem);margin:0 0 .5em}h3{font-size:1.5rem;margin:0 0 .4em}.wrap{width:min(1220px,92%);margin:auto}header,.contact{background:var(--ink);color:var(--paper)}header .wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0}.brand{text-decoration:none;font-size:1.4rem}nav{display:flex;gap:1.2rem;flex-wrap:wrap}nav a{text-decoration:none}.hero{display:grid;grid-template-columns:1.18fr .82fr;gap:clamp(1.25rem,5vw,5rem);align-items:center;padding:clamp(2rem,5vw,5rem) 0}.hero img{width:100%;aspect-ratio:4/5;object-fit:cover}.eyebrow{color:var(--rust);text-transform:uppercase;letter-spacing:.15em;font-weight:700}.degree{font-family:Georgia,serif;font-weight:bold}.actions{display:flex;gap:.65rem;flex-wrap:wrap}.button{display:inline-block;padding:.55rem 1rem;min-height:44px;border:1px solid var(--ink);background:var(--ink);color:white;text-decoration:none;border-radius:3px}.secondary{background:transparent;color:var(--ink)}.section{padding:2.4rem 0;border-top:1px solid var(--rule)}.skills,.projects{display:grid;gap:1rem}.skills{grid-template-columns:repeat(4,1fr);list-style:none;padding:0}.skills li,.card{border:1px solid var(--rule);padding:1rem}.icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:.65rem;border:1.5px solid currentColor;border-radius:8px;font-weight:750}.icon svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:1.55}.adobe{background:#001e36;color:#31a8ff}.id{background:#49021f;color:#ff3366}.ai{background:#330000;color:#ff9a00}.projects{grid-template-columns:repeat(3,1fr)}.card img{width:100%;aspect-ratio:3/2;object-fit:contain;background:#eee9dd;margin-bottom:1rem}.contact{padding:2.5rem 0}footer{text-align:center;padding:1rem;font-size:.88rem}footer p{margin:.2rem}
#flipbook{border:0;padding:0;background:#172b22;color:white;width:100%;height:clamp(490px,78dvh,850px);max-width:none;max-height:none}#flipbook:not([hidden]){display:grid;grid-template-rows:auto minmax(0,1fr) auto}.toolbar{display:flex;gap:.55rem;align-items:center;justify-content:center;flex-wrap:wrap;padding:.55rem;background:#203b2c}.toolbar.top{justify-content:space-between}.toolbar button,.toolbar a{min-height:44px;padding:.45rem .7rem;background:#f8f3e8;color:#203b2c;border:0;border-radius:3px;text-decoration:none}.toolbar button:disabled{opacity:.48;cursor:default}.reader-body{display:flex;min-height:0;overflow:hidden}.stage{flex:1;min-width:0;overflow:auto;display:grid;place-items:safe center;padding:.65rem;touch-action:pan-y pinch-zoom}.sheet{position:relative;display:flex;justify-content:center;align-items:center;width:max-content;max-width:100%;perspective:1300px;transform-origin:center}.sheet img{max-width:min(100%,72vw);max-height:calc(92dvh - 165px);width:auto;height:auto;object-fit:contain;background:white}.sheet.spread img{max-width:46%}.sheet.zoomed{max-width:none}.sheet.zoomed img{max-height:none;max-width:none;width:clamp(500px,84vw,1250px)}.sheet.zoomed.spread img{width:clamp(380px,58vw,840px)}.turning{position:absolute;inset:0;pointer-events:none;transform-origin:left center;animation:turn 1s ease-in-out forwards;box-shadow:inset -28px 0 42px #0004;object-fit:contain}.turning.back{transform-origin:right center;animation-name:back-turn}@keyframes turn{to{transform:rotateY(-155deg) skewY(-3deg);opacity:.2}}@keyframes back-turn{to{transform:rotateY(155deg) skewY(3deg);opacity:.2}}.pages{width:min(165px,34vw);overflow:auto;background:#213c2f;padding:.5rem;flex:none}.pages button{width:100%;margin:0 0 .5rem;background:#f8f3e8;color:#203b2c;border:0;padding:.25rem}.pages button[aria-current=true]{outline:3px solid #e8a471}.pages img{max-height:90px;margin:auto}.missing{max-width:28rem;background:#fff;color:#203b2c;padding:2rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:focus-visible{outline:3px solid #b65838;outline-offset:3px}
@media(max-width:700px){header .wrap{align-items:flex-start;flex-direction:column;gap:.5rem}nav{gap:.8rem}.hero{grid-template-columns:1fr}.hero img{grid-row:1;max-height:52vh;object-position:center 32%}.skills{grid-template-columns:repeat(2,1fr)}.projects{grid-template-columns:1fr}#flipbook{height:clamp(440px,75dvh,720px)}.sheet img{max-width:100%;max-height:calc(100dvh - 165px)}.toolbar{gap:.35rem}.toolbar button,.toolbar a{padding:.4rem .55rem}.sheet.zoomed img{max-width:none}.pages{width:min(135px,33vw)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0s!important;scroll-behavior:auto!important}}

/* Warm paper, serif typography, and fine rules from the design board. */
:root{--paper:#faf5ea;--ink:#1c392a;--rust:#963e28;--rule:#b8bba7;font-family:Georgia,'Times New Roman',serif}
body{background:radial-gradient(ellipse at 8% 20%,#f6eedf,transparent 45%),var(--paper)}
.wrap{width:min(1320px,92%)}
header{background:linear-gradient(105deg,#263f28,#183427)}
header .wrap{padding:.85rem 0}
.brand{font-weight:bold;font-size:clamp(1.35rem,2.3vw,2.05rem)}
nav{gap:clamp(.8rem,3vw,2.8rem)}
nav a:hover{text-decoration:underline;text-underline-offset:.25em}
.hero{position:relative;grid-template-columns:1.08fr .92fr;gap:clamp(1.5rem,3.8vw,3.4rem);padding:0;align-items:stretch}
.hero>div{padding:clamp(2.1rem,4vw,3.8rem) 0;align-self:center}
.hero img{height:100%;min-height:0;aspect-ratio:auto;object-position:50% 26%;mask-image:linear-gradient(to right,transparent,black 12%,black 88%,transparent)}
h1{font-size:clamp(2.25rem,4.9vw,4.8rem);letter-spacing:-.04em;text-wrap:balance}
.eyebrow{font:700 .78rem/1.4 system-ui,sans-serif;letter-spacing:.18em}
.degree{font-style:italic}.hero p{max-width:65ch}
.button{font-weight:bold}.secondary{color:var(--rust);border-color:var(--rust)}
.section{padding:1.65rem 0 2rem}
.section h2{display:flex;align-items:center;gap:1rem;letter-spacing:-.028em}
.section h2::after{content:"";height:1px;background:var(--ink);flex:1;opacity:.65}
.skills{grid-template-columns:repeat(7,minmax(0,1fr));gap:0;margin:1.15rem 0 .25rem}
.skills li{text-align:center;border:0;border-inline-end:1px solid var(--rule);padding:.25rem .4rem;line-height:1.2}
.skills li:last-child{border:0}
.skills .icon{margin:0 auto .55rem;border:0;border-radius:0;width:68px;height:52px;color:var(--ink)}
.skills .icon svg{width:100%;height:100%;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.skills .adobe{width:42px;height:42px;margin-top:5px;margin-bottom:calc(.55rem + 5px);background:none;color:var(--ink);border:1.7px solid;border-radius:7px;font:700 23px/1 system-ui,sans-serif}
.card{background:#fffaf055;padding:.65rem;border-color:#dad2c1}
.featured .card{display:grid;grid-template-columns:42% 1fr;gap:.75rem}
.featured .card img{height:100%;min-height:130px;aspect-ratio:auto;object-fit:cover;margin:0}
.featured .card:nth-child(2) img,.featured .card:nth-child(3) img{object-fit:contain}
.featured h3{font-size:clamp(1.2rem,1.7vw,1.6rem)}
.featured p{font-size:.92rem;line-height:1.4;margin:.25rem 0 .55rem}
.project-link{color:var(--rust);background:none;border:0;padding:.25rem 0;font-weight:bold;text-align:left;min-height:44px}
.project-link:hover{text-decoration:underline;text-underline-offset:.2em}
.all-projects{text-align:center;margin-top:1.25rem}
.all-projects summary{cursor:pointer;list-style:none}
.all-projects summary::-webkit-details-marker{display:none}
.all-projects .projects{text-align:left;margin-top:1rem}
.contact{background:linear-gradient(110deg,#243e2b,#183427)}
.contact h2{font-style:italic}
footer{border-top:1px solid var(--rule)}
@media(max-width:980px){.featured .card{grid-template-columns:1fr}.featured .card img{height:155px}}
@media(max-width:700px){.hero{grid-template-columns:1fr;gap:0}.hero img{height:auto;max-height:48vh}.hero>div{padding:1.45rem 0 2rem}.skills{grid-template-columns:repeat(2,minmax(0,1fr))}.skills li{border:0;border-bottom:1px solid var(--rule);padding:.7rem .35rem}.featured .card{grid-template-columns:38% 1fr}.featured .card img{height:100%;min-height:110px}}

/* The lead rendering spans the collection, followed by two project studies. */
.featured{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2.4vw,2rem)}
.featured .card{display:flex;flex-direction:column;padding:0;gap:0;min-width:0;background:#fffaf0}
.featured .project-art{overflow:hidden;background:#ebe7db;aspect-ratio:16/9}
.featured .card .project-art img{width:100%;height:100%;min-height:0;object-fit:contain}
.featured .project-copy{padding:clamp(1rem,2.6vw,2rem);display:flex;flex-direction:column;align-items:flex-start;flex:1}
.featured .eyebrow{font-size:.7rem;margin:0 0 .55rem}
.featured h3{font-size:clamp(1.55rem,3vw,2.6rem);letter-spacing:-.025em}
.featured .project-copy>p:not(.eyebrow){font-size:1.05rem;margin:.15rem 0 1rem;max-width:62ch}
.featured .project-link{margin-top:auto;border-top:1px solid var(--rule);width:100%;padding-top:.65rem}
@media(prefers-reduced-motion:no-preference){.featured img{transition:transform .7s ease}.featured .card:is(:hover,:focus-within) img{transform:scale(1.025)}}

.project-rotation{margin-top:1.25rem}
.project-rotation [hidden]{display:none}
.rotation-controls{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;margin-bottom:.6rem}
.rotation-controls button{border:1px solid var(--rule);background:var(--paper);color:var(--ink);min-width:44px;min-height:44px;padding:.35rem .65rem}
.rotation-controls span{font-variant-numeric:tabular-nums;min-width:3.4em;text-align:center}


.rotation-row + .rotation-controls{margin:.6rem 0 0}

/* Reserve the same toolbar space for single pages and page ranges. */
#page-count{display:inline-block;min-width:7ch;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
#flipbook .sheet.paired{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(82vw,1080px);gap:2px}
#flipbook .sheet.paired>img:not(.turning){width:100%;max-width:100%;height:min(68dvh,720px);object-fit:contain}
#flipbook .sheet.paired.zoomed{width:clamp(960px,155vw,1900px);max-width:none}
#flipbook .sheet.paired.zoomed>img:not(.turning){height:auto;max-height:none}
#flipbook .sheet.paired>.missing{margin:auto}

/* Show equal portrait cards and clip incoming slides at the row edges. */
.project-rotation .rotation-row{grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}
.project-rotation .featured .project-art{aspect-ratio:3/4}
@media(max-width:700px){
  .project-rotation .rotation-row{grid-template-columns:minmax(0,1fr)}
  .rotation-row .card[data-project-slide]:nth-child(n+2){display:none}
}
.all-projects .card img{aspect-ratio:3/4}

.project-list{display:grid;gap:.75rem;margin-top:1.4rem}
.project-panel{border:1px solid var(--rule);background:#fffaf0}
.project-panel summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:clamp(1rem,2.2vw,1.65rem);cursor:pointer;list-style:none}
.project-panel summary::-webkit-details-marker{display:none}
.project-panel summary:hover,.project-panel[open] summary{background:#eeeade}
.project-heading,.project-title,.project-synopsis{display:block}
.project-title{font-weight:bold;font-size:clamp(1.45rem,3vw,2.15rem);line-height:1.16}
.project-synopsis{margin-top:.28rem;line-height:1.4}
.project-toggle{flex:none;display:grid;place-items:center;width:2.25rem;height:2.25rem;border:1px solid var(--rule);border-radius:50%}
.project-toggle::before{content:'+';font-size:1.55rem;line-height:1}
.project-panel[open] .project-toggle::before{content:'−'}
.project-reveal{display:grid;grid-template-rows:1fr;overflow:hidden}
.project-reveal-inner{min-height:0;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:1.25rem;padding:1.15rem clamp(1rem,2.2vw,1.65rem)}
.project-reveal-inner img{width:100%;height:auto;border:1px solid var(--rule)}
.project-reveal-copy{align-self:center}
.project-reveal-copy .actions{margin-top:.8rem}
@media(prefers-reduced-motion:no-preference){
  .project-panel[open] .project-reveal{animation:reveal-project 1.2s cubic-bezier(.22,.61,.36,1)}
  @keyframes reveal-project{from{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}
}
@media(max-width:700px){.project-reveal-inner{grid-template-columns:1fr;gap:.85rem}}

.project-reader-slot{min-height:0;overflow:hidden}
#flipbook[hidden]{display:none}
#flipbook:fullscreen{height:100dvh}
#flipbook .sheet:not(.zoomed) img{max-height:calc(clamp(490px,78dvh,850px) - 145px)}
@media(max-width:700px){#flipbook .sheet:not(.zoomed) img{max-height:calc(clamp(440px,75dvh,720px) - 165px)}}

@media(max-width:700px){
  #flipbook .reader-body{flex-direction:column}
  #flipbook .pages{display:flex;gap:.5rem;width:100%;overflow-x:auto;flex:none}
  #flipbook .pages button{flex:0 0 70px;margin:0}
  #flipbook .pages img{max-height:46px}
  #flipbook .sheet img{max-height:calc(clamp(440px,75dvh,720px) - 210px)}
}

.more-projects{margin-top:1rem}
.more-projects>summary{display:inline-flex;align-items:center;gap:.75rem;cursor:pointer;list-style:none}
.more-projects>summary::-webkit-details-marker{display:none}
.more-projects-close,.more-projects[open] .more-projects-open{display:none}
.more-projects[open] .more-projects-close{display:inline}
.more-projects[open] .more-projects-icon{transform:rotate(45deg)}
.more-projects>.project-reveal>.project-list{min-height:0;overflow:hidden;margin-top:0;padding-top:1rem}
@media(prefers-reduced-motion:no-preference){
  .more-projects[open]>.project-reveal{animation:reveal-project 1.2s cubic-bezier(.22,.61,.36,1)}
}

/* Keep reader scrolling from chaining to the surrounding page. */
#flipbook .pages,#flipbook .stage{overscroll-behavior:contain}


@media(max-width:700px){
  .skills{grid-template-columns:repeat(6,minmax(0,1fr))}
  .skills li{grid-column:span 3}
  .skills li:nth-child(n+5){grid-column:span 2}
}

/* The slide fits the available reader area independently of its intrinsic size. */
#flipbook .reader-body{min-width:0;min-height:0;overflow:hidden}
#flipbook .stage{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;padding:0}
#flipbook .sheet{position:absolute;inset:12px;display:block;width:auto;height:auto;max-width:none;min-width:0;min-height:0}
#flipbook .sheet:not(.zoomed) img{display:block;width:100%;height:100%;max-width:none;max-height:none;min-width:0;min-height:0;object-fit:contain;background:transparent}
#flipbook .pages{min-height:0;overscroll-behavior:contain}
#flipbook .pages img{width:auto;height:auto;max-width:100%;max-height:90px}
@media(max-width:700px){
  #flipbook{height:auto;grid-template-rows:auto auto auto}
  #flipbook .reader-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:84px auto}
  #flipbook .pages{height:84px;min-width:0;max-width:100%;padding:.4rem;overflow-x:auto;overflow-y:hidden}
  #flipbook .pages button{flex:0 0 74px;min-width:0}
  #flipbook .pages img{max-height:46px}
  #flipbook .stage{width:100%;aspect-ratio:8/5;flex:none}
  #flipbook .sheet{inset:6px}
}

@media(max-width:700px){
  .skills li{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
  .skills li>br{display:none}
  .skills li:nth-child(n+5){border-bottom:0;padding:.8rem .2rem}
  .skills li:nth-child(n+5) strong{white-space:nowrap;font-size:1rem;line-height:1.4}
}


@media(max-width:700px){
  #flipbook .pages{gap:4px}
  #flipbook .pages button{flex:0 0 calc((100% - 16px)/5);padding:3px;font-size:.75rem}
  #flipbook .pages.short-page-list{justify-content:center}
}

@media(max-width:700px){
  header .wrap{flex-direction:row;align-items:center;justify-content:space-between;gap:.6rem}
  header .brand{font-size:clamp(1rem,4vw,1.35rem);flex:0 1 auto}
  header nav{justify-content:flex-end;gap:.5rem;flex:0 0 auto;font-size:.85rem}
}

/* Navigation motion is timed in reader.js so every browser uses the same pace. */
html{scroll-behavior:auto}
@media(prefers-reduced-motion:no-preference){.more-projects[open]>.project-reveal{animation:none}}
