/* /contact/ — same design language as the homepage, portfolio and instruments pages.
   Desktop: one screen, no page scroll; the message box scrolls inside itself.
   Phones: same column, full width; the page may scroll (needed while the keyboard is open). */

html, body { height: 100%; }
body { background: var(--ink); color: var(--green); }

.c {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── title: twice the portfolio header's size ── */
.c-header {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 14vh;
  padding: 1.5vh 24px;
  border-bottom: 2px solid var(--green);
}
.c-title {
  margin: 0;
}
.c-title a { white-space: nowrap; }      /* never split "MyFi Studio" across lines */
.c-title {
  font-size: max(30px, 7vh);
  font-weight: inherit;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

/* links: underlined; hover / keyboard focus swaps to the green box (homepage menu style) */
.c a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  padding: 0 0.08em;
  -webkit-tap-highlight-color: transparent;
}
.c a:hover,
.c a:focus-visible,
.c a:active {
  background: var(--green);
  color: var(--ink);
  outline: none;
}

.c-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 3vh 24px 1.5vh;
  width: min(100%, 980px);
}

.c-emails {
  margin: 0 0 3vh;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.6em;
  font-size: max(18px, 3.2vh);
}

/* ── form ── */
.c-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  font-size: max(16px, 2.3vh);     /* never below 16px: iPhones zoom into smaller form fields */
}
.c-field { display: flex; flex-direction: column; gap: 0.5vh; }
.c-field--message { flex: 1; min-height: 0; }

.c-field label { font-size: 0.85em; opacity: 0.85; }

.c-form input,
.c-form textarea {
  font: inherit;
  color: var(--green);
  background: var(--ink);
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.45em 0.6em;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.c-form textarea {
  flex: 1;
  min-height: 4.5em;
  resize: none;
  overflow-y: auto;          /* the message scrolls inside its box */
  line-height: 1.45;
}
.c-form input:focus,
.c-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.c-form [aria-invalid="true"] { border-style: dashed; }
::placeholder { color: var(--green); opacity: 0.45; }
::selection { background: var(--green); color: var(--ink); }

.c-actions {
  display: flex;
  align-items: center;
  gap: 1em;
}
.c-send {
  font: inherit;
  color: var(--green);
  background: var(--ink);
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.35em 1.1em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.c-send:hover,
.c-send:focus-visible,
.c-send:active {
  background: var(--green);
  color: var(--ink);
  outline: none;
}
.c-send:disabled { opacity: 0.5; cursor: wait; }
.c-counter { font-size: 0.85em; opacity: 0.75; font-variant-numeric: tabular-nums; }
.c-counter.is-full { opacity: 1; }

.c-status { margin: 0; min-height: 1.4em; font-size: 0.95em; }
.c-status.is-ok { background: var(--green); color: var(--ink); align-self: flex-start; padding: 0.1em 0.4em; }

/* spam trap: off screen (not display:none, which some bots skip) */
.c-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── follow us ── */
.c-follow {
  flex: none;
  padding: 1.8vh 24px 2.4vh;
  font-size: max(16px, 2.6vh);
}

/* ── phones (same rule as the other pages) ── */
@media (max-width: 759px), (max-aspect-ratio: 9/10) {
  .c {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;      /* fills the screen with the browser bars showing… */
    overflow: visible;       /* …and may scroll (keyboard open) */
  }
  .c-header { min-height: 0; padding: 16px 16px 12px; }
  .c-title { font-size: clamp(24px, 8.3vw, 34px); white-space: nowrap; }
  .c-main { padding: 20px 16px 8px; width: 100%; }
  .c-main { flex: 1; display: flex; flex-direction: column; }
  .c-emails { gap: 4px 18px; font-size: 18px; margin-bottom: 16px; }
  .c-form { font-size: 16px; gap: 12px; }
  /* the message box takes whatever height is left, so the page fits one screen; on very small
     phones it stops at 110px and the page scrolls a little instead */
  .c-form textarea { flex: 1 1 auto; height: auto; min-height: 110px; }
  .c-follow {
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    font-size: 17px;
  }
}
