/* ============================================================
   onurugurlu.com — Onur Uğurlu
   Design: "Nordic sidebar". Warm paper, sage accent, soft cards,
   fixed identity column on the left, scrolling content on the right.

   Typography is deliberately system-only (Candara/Corbel + Constantia)
   so the site renders identically without any web-font request.

   To change the accent colour, edit --accent and --accent-soft below.
   Contrast note: --faint, --soft and --accent are all >= 4.5:1 on
   --paper. Keep them that way if you retune the palette.
   ============================================================ */

:root{
  --paper:       #f7f5f0;
  --card:        #fffefb;
  --ink:         #2c2a26;
  --soft:        #5f5a52;
  --faint:       #6e685f;
  --rule:        #e6e1d7;
  --accent:      #4a6a53;
  --accent-soft: #e9efe9;
  --clay:        #a5613f;
  --sans: Candara, Corbel, "Segoe UI", Optima, -apple-system, Helvetica, sans-serif;
  --serif: Constantia, Georgia, "Palatino Linotype", Palatino, serif;
}

*{ box-sizing:border-box }

html{ scroll-behavior:smooth }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto } }

body{
  margin:0; background:var(--paper); color:var(--ink);
  overflow-wrap:break-word;
  font-family:var(--sans); font-size:17px; line-height:1.68;
  -webkit-font-smoothing:antialiased;
}

a{ color:var(--accent) }
a:focus-visible, button:focus-visible{
  outline:3px solid var(--clay); outline-offset:2px; border-radius:3px;
}

.skip{
  position:absolute; left:-9999px; top:0; z-index:50;
  background:var(--ink); color:#fff; padding:.7rem 1.1rem; text-decoration:none;
}
.skip:focus{ left:.5rem; top:.5rem }

/* ---------- shell ---------- */
.shell{
  display:grid; grid-template-columns:19.5rem minmax(0,1fr);
  max-width:78rem; margin:0 auto; min-height:100vh;
}

/* ---------- sidebar ---------- */
aside{
  padding:3rem 2.2rem 2.5rem; border-right:1px solid var(--rule);
  position:sticky; top:0; align-self:start;
}
aside .portrait{
  display:block; width:100%; max-width:13rem; height:auto; margin:0 0 1.1rem;
  border-radius:10px; border:1px solid var(--rule);
  box-shadow:0 3px 14px rgba(80,70,50,.14);
}
aside .name{
  font-family:var(--serif); font-size:1.62rem; margin:0 0 1.5rem;
  font-weight:600; letter-spacing:-.01em; line-height:1.2;
}
aside .name a{ color:var(--ink); text-decoration:none }

aside nav{ display:flex; flex-direction:column; gap:.1rem; margin-bottom:1.8rem }
aside nav a{
  color:var(--soft); text-decoration:none; font-size:.95rem;
  padding:.34rem .7rem; border-radius:6px;
}
aside nav a:hover{ background:var(--accent-soft); color:var(--accent) }
aside nav a[aria-current="page"]{
  background:var(--accent-soft); color:var(--accent); font-weight:600;
}

aside .contact{
  border-top:1px solid var(--rule); padding-top:1.2rem;
  font-size:.86rem; color:var(--soft);
}
aside .contact .contact-h{
  font-size:.74rem; letter-spacing:.15em; text-transform:uppercase;
  color:var(--faint); font-weight:600; margin:0 0 .5rem;
}
aside .contact p{ margin:0 0 .55rem; line-height:1.55 }
aside .contact p:last-child{ margin-bottom:0 }
aside .contact a{ color:var(--accent); text-decoration:none; overflow-wrap:anywhere }
aside .contact a:hover{ text-decoration:underline }

/* ---------- main ---------- */
main{ padding:3rem 3rem 4rem; max-width:46rem }

.page-title{
  font-family:var(--serif); font-size:2.1rem; font-weight:600;
  letter-spacing:-.015em; margin:0 0 .5rem; line-height:1.2;
}
.lead{
  font-family:var(--serif); font-size:1.62rem; line-height:1.42;
  margin:0 0 1.4rem; letter-spacing:-.01em;
}
p{ margin:0 0 1rem }
.intro{ color:var(--soft) }
.intro strong{ color:var(--ink); font-weight:600 }

section{ margin-top:2.9rem }
h2{
  font-size:.78rem; letter-spacing:.15em; text-transform:uppercase;
  color:var(--faint); font-weight:600; margin:0 0 1.1rem;
}
h3{ font-family:var(--serif); font-size:1.14rem; margin:0 0 .3rem; font-weight:600 }

/* ---------- cards ---------- */
.card{
  background:var(--card); border:1px solid var(--rule); border-radius:12px;
  padding:1.15rem 1.35rem; margin-bottom:.75rem;
}
.card p{ margin:0; color:var(--soft); font-size:.95rem; line-height:1.6 }
.card p + p{ margin-top:.6rem }
.dot{
  display:inline-block; width:.55rem; height:.55rem; border-radius:50%;
  background:var(--accent); margin-right:.5rem; vertical-align:.06rem;
}
.c2 .dot{ background:#7b93b5 }
.c3 .dot{ background:var(--clay) }
.c4 .dot{ background:#8a76a0 }
.c5 .dot{ background:#a8892f }
.c6 .dot{ background:#4f8a8b }

/* ---------- visually hidden ---------- */
.vh{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- figure ---------- */
figure.photo{ margin:1.8rem 0 1.6rem; max-width:23rem }
figure.photo img{
  display:block; width:100%; height:auto; border-radius:12px;
  border:1px solid var(--rule); box-shadow:0 3px 18px rgba(80,70,50,.13);
}
figure.photo figcaption{
  margin-top:.55rem; font-size:.85rem; color:var(--faint); line-height:1.5;
}

/* ---------- publications ---------- */
.pub{ padding:.95rem 0; border-bottom:1px solid var(--rule) }
.pub:last-child{ border-bottom:none }
.pub a.t{
  font-family:var(--serif); font-size:1.06rem; color:var(--ink);
  text-decoration:none; line-height:1.4;
}
.pub a.t:hover{ color:var(--clay); text-decoration:underline }
.pub .au{ color:var(--soft); font-size:.88rem; margin-top:.2rem }
.pub .au b{ color:var(--ink); font-weight:600 }
.pub .venue{ font-size:.88rem; margin-top:.15rem; color:var(--accent); font-weight:600 }
.pub .venue span{ color:var(--faint); font-weight:400 }

.more{
  display:inline-block; margin-top:1.1rem; color:var(--accent);
  text-decoration:none; font-size:.93rem; font-weight:600;
}
.more:hover{ text-decoration:underline }

/* ---------- projects ---------- */
.proj{ padding:.95rem 0; border-bottom:1px solid var(--rule) }
.proj:last-child{ border-bottom:none }
.proj h3{ margin-bottom:.35rem }
.tags{ display:flex; flex-wrap:wrap; gap:.4rem; font-size:.8rem }
.tag{
  border:1px solid var(--rule); background:var(--card); color:var(--soft);
  border-radius:999px; padding:.14rem .7rem;
}
.tag.role{ border-color:var(--accent); color:var(--accent) }
.tag.live{ background:var(--accent-soft); border-color:var(--accent-soft); color:var(--accent) }

/* ---------- plain lists ---------- */
ul.t{ list-style:none; padding:0; margin:0; color:var(--soft); font-size:.97rem }
ul.t li{ padding:.22rem 0 .22rem 1.15rem; position:relative }
ul.t li::before{ content:"—"; position:absolute; left:0; color:var(--faint) }
ul.t li b{ color:var(--ink); font-weight:600 }

.thesis{ padding:.6rem 0; border-bottom:1px solid var(--rule) }
.thesis:last-child{ border-bottom:none }
.thesis .ti{ font-family:var(--serif); font-size:1.02rem; line-height:1.4 }
.thesis .who{ color:var(--soft); font-size:.88rem; margin-top:.1rem }
.thesis .who em{ color:var(--clay); font-style:normal }

.note{
  border-left:3px solid var(--accent); background:var(--card);
  padding:.85rem 1.1rem; margin:1.4rem 0; border-radius:0 8px 8px 0;
  font-size:.95rem; color:var(--soft);
}

.foot{
  margin-top:3.2rem; padding-top:1.4rem; border-top:1px solid var(--rule);
  font-size:.85rem; color:var(--faint);
}
.foot a{ color:var(--faint) }

/* ---------- responsive ---------- */
@media (max-width:880px){
  .shell{ grid-template-columns:1fr }
  aside{
    position:static; border-right:none; border-bottom:1px solid var(--rule);
    padding:2rem 1.5rem 1.5rem;
  }
  aside nav{ flex-direction:row; flex-wrap:wrap; gap:.25rem }
  main{ padding:2.2rem 1.5rem 3rem }
  .lead{ font-size:1.35rem }
  .page-title{ font-size:1.75rem }
}
@media (max-width:380px){
  body{ font-size:16px }
  aside{ padding:1.6rem 1.1rem 1.2rem }
  main{ padding:1.8rem 1.1rem 2.4rem }
}

/* ---------- print ---------- */
@media print{
  body{ background:#fff; font-size:11pt }
  .shell{ display:block; max-width:none }
  aside{ position:static; border:none; border-bottom:1px solid #ccc; padding:0 0 1rem }
  aside nav, .skip{ display:none }
  main{ padding:1rem 0 0; max-width:none }
  .card, .pub, .proj{ break-inside:avoid }
  a{ color:#000; text-decoration:none }
}
