/* elionweb.com — Colonnade.
   Six colours, two faces, no JavaScript. The mark (three posts on a base)
   is the design system: capitals over columns, base bars under buttons,
   an ornament on every section, and a hero mark that draws itself once.
   Nothing moves under prefers-reduced-motion. */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/eb-garamond-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/source-serif-4-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Elion Wordmark";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/elion-wordmark-el.woff2") format("woff2");
  unicode-range: U+0395, U+0399, U+039B, U+039D, U+039F;
}
@font-face {
  font-family: "Elion Lang";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/elion-lang-el.woff2") format("woff2");
  unicode-range: U+0386, U+0391, U+0395, U+0397, U+0399, U+039A, U+039B, U+039D, U+03AC, U+03B7, U+03B9, U+03BA, U+03BB, U+03BD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --ink-green: #1C3A32;
  --ink:       #14181A;
  --bone:      #F5F2EA;
  --brass:     #87672A;
  --deep-ink:  #12201C;
  --brass-lt:  #C2A05A;
  --rule:      rgba(20, 24, 26, .18);
  --rule-dark: rgba(245, 242, 234, .22);
  --bone-veil: rgba(245, 242, 234, .86);
  --serif-brand: "EB Garamond", Garamond, Georgia, serif;  /* wordmark, both languages */
  --serif: var(--serif-brand);                             /* running serif */
  --sans:  "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 46rem;
  --gutter: 1.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

html[lang="el"] {
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --serif-brand: "Elion Wordmark", Georgia, serif;   /* the subset covers ΕΛΙΟΝ; naming EB Garamond here made Chrome fetch its 44 KB Latin face */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 112.5%;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  overflow-x: hidden;
  padding-bottom: 4.25rem;          /* room for the phone action bar */
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: text-decoration-thickness .2s var(--ease);
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* The brand's own type roles */

.descriptor {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .36em;             /* the wordmark descriptor's tracking */
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
  max-width: 11em;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 2rem;
  text-wrap: balance;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
}

/* Layout: one column */

.site-header, .opening, .work, .skills, .contact, .method-inner, .site-footer {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

section { padding-block: 3.5rem; }

/* Section ornament: the mark, small, in ink green, on a hairline.
   The base bar of the mark sits on the rule like a plinth. */

.ornament {
  position: relative;
  height: 1px;
  background: var(--rule);
  margin-bottom: 2.6rem;
  color: var(--ink-green);
}
.ornament svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 1.5rem;
  height: 1.5rem;
  transform: translateY(-.3rem);
  background: var(--bone);
  padding-right: .6rem;
  box-sizing: content-box;
}

/* Header: sticky, veiled; the mark's centre post lifts on hover */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  width: 100%;
  padding-inline: var(--gutter);
  background: var(--bone-veil);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.lockup {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
}
.lockup .mark { width: 1.75em; height: 1.75em; color: var(--ink-green); flex: none; overflow: visible; }
.mark rect { transition: transform .45s var(--ease); }
.lockup:hover .post-c { transform: translateY(-4px); }
.lockup:hover .post-l { transform: translateY(2px); }
.lockup:hover .post-r { transform: translateY(2px); }
.lockup-rule   { width: 1px; height: 1.9em; background: var(--rule); flex: none; }
.lockup-text   { display: flex; flex-direction: column; line-height: 1; }
.lockup-name {
  font-family: var(--serif-brand);
  font-weight: 500;
  font-size: 1em;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.lockup-descriptor {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(.35em, .6rem);
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: .32em;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.button):not(.lang) {
  display: none;
  position: relative;
  padding-bottom: .25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:not(.button):not(.lang)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink-green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.site-nav a:not(.button):not(.lang):hover::after { transform: scaleX(1); }

/* Language switch: always visible. Two letters on phones, the native name
   from the tablet breakpoint up; the long form stays in the accessibility
   tree at every width so a screen reader always announces the language. */

.lang {
  position: relative;
  padding-bottom: .25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.lang::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.lang:hover::after { transform: scaleX(1); }
.lang-long {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Greek label on an English page: the switch, and the 404 page's link
   to /el/. Both are fixed strings, so they come from a 3 KB subset. */

html[lang="en"] .lang,
html[lang="en"] [lang="el"] {
  font-family: "Elion Lang", var(--sans);
}

/* Buttons: a solid ink-green post standing on a brass base bar that
   extends past it on hover, the way the mark's base outruns its posts. */

.button {
  position: relative;
  display: inline-block;
  padding: .8em 1.5em;
  background: var(--ink-green);
  color: var(--bone);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 3px;
  background: var(--brass);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.button:hover { transform: translateY(-2px); background: var(--deep-ink); }
.button:hover::after { left: -.6rem; right: -.6rem; }
.site-nav .button { display: none; padding: .6em 1.1em; font-size: .75rem; }
.site-nav .button::after { display: none; }

.more {
  align-self: center;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--brass);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.more:hover { border-bottom-width: 2px; color: var(--ink-green); }

/* Opening: headline and mark, side by side. One quiet entrance:
   the base bar draws in and the posts settle onto it. */

.opening {
  position: relative;
  min-height: min(calc(100svh - 4.5rem), 44rem);
  display: grid;
  gap: 1.75rem;
  align-content: center;
  padding-block: 3rem 4.5rem;
}
.hero-mark {
  width: clamp(5.5rem, 22vw, 7rem);
  height: auto;
  color: var(--ink-green);
  overflow: visible;
  order: -1;
}
.hero-mark rect { transform-box: fill-box; animation: 1s var(--ease) both; }
.hero-mark .post-l { animation-name: from-above; animation-delay: .1s; }
.hero-mark .post-r { animation-name: from-above; animation-delay: .22s; }
.hero-mark .post-c { animation-name: from-below; animation-delay: .36s; }
.hero-mark .base   { animation-name: draw; transform-origin: 0 50%; animation-delay: .5s; }
@keyframes from-above { from { transform: translateY(-30%); opacity: 0; } }
@keyframes from-below { from { transform: translateY(30%);  opacity: 0; } }
@keyframes draw       { from { transform: scaleX(0); } }

.rise { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .1s; }
.rise:nth-child(3) { animation-delay: .2s; }
.rise:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.55rem);
  line-height: 1.4;
  margin-top: 1.6rem;
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.4rem;
}

/* Work: columns. Each piece stands under a capital, a brass hairline
   with a short ink-green post that grows on hover. */

.columns { display: grid; gap: 2.5rem 2rem; }
.column { position: relative; padding-top: 1.4rem; }
.capital {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.capital::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 2.25rem;
  height: 5px;
  background: var(--ink-green);
  transition: width .45s var(--ease);
}
.column:hover .capital::before { width: 100%; }
.column p { margin-top: .7rem; font-size: 1rem; }
.stack {
  display: block;
  margin-top: .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.aside {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-green);
}

/* Skills */

.skill-grid { display: grid; gap: 1.6rem 2rem; }
.skill-grid li { position: relative; padding-top: 1rem; border-top: 1px solid var(--rule); }
.skill-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 2.25rem;
  height: 5px;
  background: var(--brass);
  transition: width .45s var(--ease);
}
.skill-grid li:hover::before { width: 100%; }
.skill-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: .3rem;
}
.skill-grid span { font-size: 1rem; }

/* Process: the page's one change of key. A native accordion, one step
   open at a time (the name attribute), no script. */

.method {
  position: relative;
  background: var(--deep-ink);
  color: var(--bone);
  padding-block: 4rem;
  overflow: hidden;
}
.method::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(194, 160, 90, .14), transparent);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate(-18%, 22%); } }
.method-inner { position: relative; }
.method .ornament { background: var(--rule-dark); color: var(--bone); }
.method .ornament svg { background: var(--deep-ink); }
.method .descriptor { color: var(--brass-lt); }

.steps { display: grid; }
.step { border-top: 1px solid var(--rule-dark); }
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step summary {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  transition: color .3s var(--ease);
}
.step summary::-webkit-details-marker { display: none; }
.step-n {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--brass-lt);
  flex: none;
  width: 2rem;
}
.step-t {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  flex: 1;
}
.step summary::after {
  content: "";
  flex: none;
  width: .7rem;
  height: .7rem;
  margin-left: auto;
  align-self: center;
  border-right: 1px solid var(--brass-lt);
  border-bottom: 1px solid var(--brass-lt);
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.step[open] summary::after { transform: rotate(-135deg); }
.step summary:hover .step-t { color: var(--brass-lt); }
.step p {
  padding: 0 0 1.3rem 3.2rem;
  max-width: 34rem;
  font-size: 1.02rem;
  animation: unfold .45s var(--ease);
}
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.method :focus-visible { outline-color: var(--brass-lt); }

/* Contact */

.contact p { font-size: 1.15rem; max-width: 34rem; }
.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 1.8rem;
  font-style: normal;
}
.contact-list .button { text-transform: none; letter-spacing: .04em; font-size: 1rem; }
.contact-list .more { text-transform: none; letter-spacing: .04em; font-size: 1rem; }
.place {
  flex-basis: 100%;
  margin-top: .6rem;
  color: var(--brass);
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-size: .75rem;
}

/* Footer: the lockup, quiet */

.site-footer {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-block: 1.8rem 2.4rem;
  border-top: 1px solid var(--rule);
}
.site-footer .mark { width: 1.5rem; height: 1.5rem; color: var(--ink-green); }
.footer-name {
  font-family: var(--serif-brand);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.footer-name span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .36em;
  color: var(--brass);
  margin-left: .6rem;
}
.footer-year {
  margin-left: auto;
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--brass);
}

/* Phone action bar: email and WhatsApp always one tap away */

.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--deep-ink);
  border-top: 3px solid var(--brass);
}
.action-bar a {
  padding: .95rem;
  text-align: center;
  color: var(--bone);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.action-bar a + a { border-left: 1px solid var(--rule-dark); color: var(--brass-lt); }
.action-bar :focus-visible { outline-color: var(--brass-lt); outline-offset: -4px; }

/* Scroll-driven motion, only where the browser has it */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* One breakpoint */

@media (min-width: 40em) {
  :root { --gutter: 2rem; }
  body { padding-bottom: 0; }
  section { padding-block: 5rem; }
  .method { padding-block: 5.5rem; }
  .site-header { padding-block: 1.1rem; }
  .lockup { font-size: 1.6rem; gap: 1rem; }
  .site-nav a:not(.button):not(.lang) { display: inline-block; }
  .site-nav .button { display: inline-block; }
  .lang-short { display: none; }
  .lang-long {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
  }
  .opening { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; padding-block: 5rem 6rem; }
  .hero-mark { order: 0; width: clamp(9rem, 24vw, 15rem); }
  .columns { grid-template-columns: 1fr 1fr; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .step-t { font-size: 1.5rem; }
  .action-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}
